1. 07 2月, 2004 1 次提交
  2. 04 2月, 2004 2 次提交
  3. 25 1月, 2004 1 次提交
    • J
      Added GUC variable bgwriter_flush_method controlling the action · d77b63b1
      Jan Wieck 提交于
      done by the background writer between writing dirty blocks and
      napping.
      
          none (default)   no action
      	sync             bgwriter calls smgrsync() causing a sync(2)
      
      A global sync() is only good on dedicated database servers, so
      more flush methods should be added in the future.
      
      Jan
      d77b63b1
  4. 24 1月, 2004 1 次提交
    • T
      Revise GEQO planner to make use of some heuristic knowledge about SQL, namely · 3969f292
      Tom Lane 提交于
      that it's good to join where there are join clauses rather than where there
      are not.  Also enable it to generate bushy plans at need, so that it doesn't
      fail in the presence of multiple IN clauses containing sub-joins.  These
      changes appear to improve the behavior enough that we can substantially reduce
      the default pool size and generations count, thereby decreasing the runtime,
      and yet get as good or better plans as we were getting in 7.4.  Consequently,
      adjust the default GEQO parameters.  I also modified the way geqo_effort is
      used so that it affects both population size and number of generations;
      it's now useful as a single control to adjust the GEQO runtime-vs-plan-quality
      tradeoff.  Bump geqo_threshold to 12, since even with these changes GEQO
      seems to be slower than the regular planner at 11 relations.
      3969f292
  5. 22 1月, 2004 1 次提交
  6. 02 12月, 2003 1 次提交
  7. 19 11月, 2003 1 次提交
    • J
      Background writer process · cfeca621
      Jan Wieck 提交于
      This first part of the background writer does no syncing at all.
      It's only purpose is to keep the LRU heads clean so that regular
      backends seldom to never have to call write().
      
      Jan
      cfeca621
  8. 17 11月, 2003 1 次提交
  9. 13 11月, 2003 3 次提交
  10. 08 10月, 2003 1 次提交
  11. 04 10月, 2003 1 次提交
  12. 07 9月, 2003 1 次提交
    • T
      Remove geqo_random_seed parameter. Having geqo reset the global random() · 48beecda
      Tom Lane 提交于
      sequence every time it's called is bogus --- it interferes with user
      control over the seed, and actually decreases randomness overall
      (because a seed based on time(NULL) is pretty predictable).  If you really
      want a reproducible result from geqo, do 'set seed = 0' before planning
      a query.
      48beecda
  13. 26 8月, 2003 1 次提交
  14. 17 8月, 2003 1 次提交
    • B
      (I always forget what the magic numbers 0 through 2 means for the · d4be99f6
      Bruce Momjian 提交于
      "syslog" option.)
      
      By the way: The "virtual_host" parameter is a bad name for that
      particular option, I think. "Virtual host" signals that PostgreSQL will
      behave differently according to which IP address it's contacted (like
      Apache's virtual host support which makes the web-server serve different
      sites according to different criteria). A better word for the options
      would be "tcpip_listen_addr" or something like that.
      
      Troels Arvin
      d4be99f6
  15. 29 7月, 2003 1 次提交
    • T
      Apply (a somewhat revised version of) Greg Mullane's patch to eliminate · 9c2a7c22
      Tom Lane 提交于
      heuristic determination of day vs month in date/time input.  Add the
      ability to specify that input is interpreted as yy-mm-dd order (which
      formerly worked, but only for yy greater than 31).  DateStyle's input
      component now has the preferred spellings DMY, MDY, or YMD; the older
      keywords European and US are now aliases for the first two of these.
      Per recent discussions on pgsql-general.
      9c2a7c22
  16. 23 7月, 2003 1 次提交
  17. 19 7月, 2003 1 次提交
  18. 15 7月, 2003 1 次提交
    • T
      The default values for shared_buffers and max_connections are now 1000 · de98a7e2
      Tom Lane 提交于
      and 100 respectively, if the platform will allow it.  initdb selects
      values that are not too large to allow the postmaster to start, and
      places these values in the installed postgresql.conf file.  This allows
      us to continue to start up out-of-the-box on platforms with small SHMMAX,
      while having somewhat-realistic default settings on platforms with
      reasonable SHMMAX.  Per recent pghackers discussion.
      de98a7e2
  19. 05 7月, 2003 1 次提交
  20. 01 7月, 2003 1 次提交
  21. 12 6月, 2003 2 次提交
  22. 11 6月, 2003 1 次提交
  23. 14 5月, 2003 1 次提交
  24. 19 4月, 2003 1 次提交
  25. 04 4月, 2003 1 次提交
    • T
      Remove zero_damaged_pages from postgresql.conf.sample; the only way to · a385186f
      Tom Lane 提交于
      find out about it is to read the documentation that tells you how
      dangerous it is.  Add default_transaction_read_only to documentation;
      seems to have been overlooked in patch that added read-only transactions.
      Clean up check_guc comparison script, which has been suffering bit rot.
      a385186f
  26. 31 3月, 2003 1 次提交
  27. 29 3月, 2003 1 次提交
    • T
      Add code to apply some simple sanity checks to the header fields of a · fd422628
      Tom Lane 提交于
      page when it's read in, per pghackers discussion around 17-Feb.  Add a
      GUC variable zero_damaged_pages that causes the response to be a WARNING
      followed by zeroing the page, rather than the normal ERROR; this is per
      Hiroshi's suggestion that there needs to be a way to get at the data
      in the rest of the table.
      fd422628
  28. 25 3月, 2003 1 次提交
  29. 20 3月, 2003 1 次提交
    • B
      > I can see a couple possible downsides: (a) the library might have some · 15ce2d2e
      Bruce Momjian 提交于
      > weird behavior across fork boundaries; (b) the additional memory space
      > that has to be duplicated into child processes will cost something per
      > child launch, even if the child never uses it.  But these are only
      > arguments that it might not *always* be a prudent thing to do, not that
      > we shouldn't give the DBA the tool to do it if he wants.  So fire away.
      
      Here is a patch for the above, including a documentation update. It
      creates a new GUC variable "preload_libraries", that accepts a list in
      the form:
      
         preload_libraries = '$libdir/mylib1:initfunc,$libdir/mylib2'
      
      If ":initfunc" is omitted or not found, no initialization function is
      executed, but the library is still preloaded. If "$libdir/mylib" isn't
      found, the postmaster refuses to start.
      
      In my testing with PL/R, it reduces the first call to a PL/R function
      (after connecting) from almost 2 seconds, down to about 8 ms.
      
      Joe Conway
      15ce2d2e
  30. 05 3月, 2003 1 次提交
    • T
      Reimplement free-space-map management as per recent discussions. · 391eb5e5
      Tom Lane 提交于
      Adjustable threshold is gone in favor of keeping track of total requested
      page storage and doling out proportional fractions to each relation
      (with a minimum amount per relation, and some quantization of the results
      to avoid thrashing with small changes in page counts).  Provide special-
      case code for indexes so as not to waste space storing useless page
      free space counts.  Restructure internal data storage to be a flat array
      instead of list-of-chunks; this may cost a little more work in data
      copying when reorganizing, but allows binary search to be used during
      lookup_fsm_page_entry().
      391eb5e5
  31. 07 2月, 2003 1 次提交
    • T
      Create a GUC variable REGEX_FLAVOR to control the type of regular · 77ede890
      Tom Lane 提交于
      expression accepted by the regex operators, per discussion yesterday.
      
      Along the way, reduce deadlock_timeout from PGC_POSTMASTER to PGC_SIGHUP
      category.  It is probably best to insist that all backends share the same
      setting, but that doesn't mean it has to be frozen at startup.
      77ede890
  32. 28 1月, 2003 3 次提交
  33. 26 1月, 2003 1 次提交
    • T
      Allow the planner to collapse explicit inner JOINs together, rather than · 9f5f2124
      Tom Lane 提交于
      necessarily following the JOIN syntax to develop the query plan.  The old
      behavior is still available by setting GUC variable JOIN_COLLAPSE_LIMIT
      to 1.  Also create a GUC variable FROM_COLLAPSE_LIMIT to control the
      similar decision about when to collapse sub-SELECT lists into their parent
      lists.  (This behavior existed already, but the limit was always
      GEQO_THRESHOLD/2; now it's separately adjustable.)
      9f5f2124
  34. 16 1月, 2003 1 次提交