1. 31 1月, 2008 1 次提交
  2. 28 1月, 2008 1 次提交
  3. 21 1月, 2008 1 次提交
  4. 12 12月, 2007 1 次提交
  5. 11 12月, 2007 1 次提交
  6. 28 11月, 2007 2 次提交
  7. 19 11月, 2007 1 次提交
  8. 10 11月, 2007 2 次提交
  9. 06 11月, 2007 1 次提交
  10. 02 11月, 2007 1 次提交
  11. 20 10月, 2007 1 次提交
  12. 10 10月, 2007 1 次提交
  13. 28 9月, 2007 1 次提交
  14. 27 9月, 2007 1 次提交
    • T
      Minor improvements in backup and recovery: · f18dfc48
      Tom Lane 提交于
      - create a separate archive_mode GUC, on which archive_command is dependent
      
      - %r option in recovery.conf sends last restartpoint to recovery command
      
      - %r used in pg_standby, updated README
      
      - minor other code cleanup in pg_standby
      
      - doc on Warm Standby now mentions pg_standby and %r
      
      - log_restartpoints recovery option emits LOG message at each restartpoint
      
      - end of recovery now displays last transaction end time, as requested
        by Warren Little; also shown at each restartpoint
      
      - restart archiver if needed to carry away WAL files at shutdown
      
      Simon Riggs
      f18dfc48
  15. 26 9月, 2007 1 次提交
    • T
      Just-in-time background writing strategy. This code avoids re-scanning · 6f5c38dc
      Tom Lane 提交于
      buffers that cannot possibly need to be cleaned, and estimates how many
      buffers it should try to clean based on moving averages of recent allocation
      requests and density of reusable buffers.  The patch also adds a couple
      more columns to pg_stat_bgwriter to help measure the effectiveness of the
      bgwriter.
      
      Greg Smith, building on his own work and ideas from several other people,
      in particular a much older patch from Itagaki Takahiro.
      6f5c38dc
  16. 24 9月, 2007 1 次提交
    • T
      Simplify and rename some GUC variables, per various recent discussions: · 48f7e643
      Tom Lane 提交于
      * stats_start_collector goes away; we always start the collector process,
      unless prevented by a problem with setting up the stats UDP socket.
      
      * stats_reset_on_server_start goes away; it seems useless in view of the
      availability of pg_stat_reset().
      
      * stats_block_level and stats_row_level are merged into a single variable
      "track_counts", which controls all reports sent to the collector process.
      
      * stats_command_string is renamed to track_activities.
      
      * log_autovacuum is renamed to log_autovacuum_min_duration to better reflect
      its meaning.
      
      The log_autovacuum change is not a compatibility issue since it didn't exist
      before 8.3 anyway.  The other changes need to be release-noted.
      48f7e643
  17. 23 9月, 2007 1 次提交
  18. 10 9月, 2007 2 次提交
  19. 06 9月, 2007 1 次提交
    • T
      Implement lazy XID allocation: transactions that do not modify any database · 295e6398
      Tom Lane 提交于
      rows will normally never obtain an XID at all.  We already did things this way
      for subtransactions, but this patch extends the concept to top-level
      transactions.  In applications where there are lots of short read-only
      transactions, this should improve performance noticeably; not so much from
      removal of the actual XID-assignments, as from reduction of overhead that's
      driven by the rate of XID consumption.  We add a concept of a "virtual
      transaction ID" so that active transactions can be uniquely identified even
      if they don't have a regular XID.  This is a much lighter-weight concept:
      uniqueness of VXIDs is only guaranteed over the short term, and no on-disk
      record is made about them.
      
      Florian Pflug, with some editorialization by Tom.
      295e6398
  20. 22 8月, 2007 1 次提交
  21. 21 8月, 2007 1 次提交
  22. 19 8月, 2007 2 次提交
  23. 14 8月, 2007 1 次提交
  24. 04 8月, 2007 1 次提交
    • T
      Switch over to using the src/timezone functions for formatting timestamps · bdd6b622
      Tom Lane 提交于
      displayed in the postmaster log.  This avoids Windows-specific problems with
      localized time zone names that are in the wrong encoding, and generally seems
      like a good idea to forestall other potential platform-dependent issues.
      To preserve the existing behavior that all backends will log in the same time
      zone, create a new GUC variable log_timezone that can only be changed on a
      system-wide basis, and reference log-related calculations to that zone instead
      of the TimeZone variable.
      
      This fixes the issue reported by Hiroshi Saito that timestamps printed by
      xlog.c startup could be improperly localized on Windows.  We still need a
      simpler patch for that problem in the back branches, however.
      bdd6b622
  25. 03 8月, 2007 1 次提交
  26. 02 8月, 2007 1 次提交
  27. 24 7月, 2007 2 次提交
    • T
      Create a new dedicated Postgres process, "wal writer", which exists to write · ad429572
      Tom Lane 提交于
      and fsync WAL at convenient intervals.  For the moment it just tries to
      offload this work from backends, but soon it will be responsible for
      guaranteeing a maximum delay before asynchronously-committed transactions
      will be flushed to disk.
      
      This is a portion of Simon Riggs' async-commit patch, committed to CVS
      separately because a background WAL writer seems like it might be a good idea
      independently of the async-commit feature.  I rebased walwriter.c on
      bgwriter.c because it seemed like a more appropriate way of handling signals;
      while the startup/shutdown logic in postmaster.c is more like autovac because
      we want walwriter to quit before we start the shutdown checkpoint.
      ad429572
    • A
      Set a default autovacuum vacuum_cost_delay value of 20ms, to avoid excessive · 53d2951b
      Alvaro Herrera 提交于
      I/O utilization, per discussion.
      
      While at it, lower the autovacuum vacuum and analyze threshold values to 50
      tuples.  It is a bit higher (i.e. more conservative) than what I originally
      proposed but much better than the old values for small tables.
      53d2951b
  28. 18 7月, 2007 1 次提交
  29. 01 7月, 2007 1 次提交
  30. 28 6月, 2007 1 次提交
    • T
      Implement "distributed" checkpoints in which the checkpoint I/O is spread · 867e2c91
      Tom Lane 提交于
      over a fairly long period of time, rather than being spat out in a burst.
      This happens only for background checkpoints carried out by the bgwriter;
      other cases, such as a shutdown checkpoint, are still done at full speed.
      
      Remove the "all buffers" scan in the bgwriter, and associated stats
      infrastructure, since this seems no longer very useful when the checkpoint
      itself is properly throttled.
      
      Original patch by Itagaki Takahiro, reworked by Heikki Linnakangas,
      and some minor API editorialization by me.
      867e2c91
  31. 23 6月, 2007 1 次提交
  32. 20 6月, 2007 1 次提交
    • T
      Code review for log_lock_waits patch. Don't try to issue log messages from · 6e072287
      Tom Lane 提交于
      within a signal handler (this might be safe given the relatively narrow code
      range in which the interrupt is enabled, but it seems awfully risky); do issue
      more informative log messages that tell what is being waited for and the exact
      length of the wait; minor other code cleanup.  Greg Stark and Tom Lane
      6e072287
  33. 08 6月, 2007 1 次提交
    • T
      Rework temp_tablespaces patch so that temp tablespaces are assigned separately · 24ee8af5
      Tom Lane 提交于
      for each temp file, rather than once per sort or hashjoin; this allows
      spreading the data of a large sort or join across multiple tablespaces.
      (I remain dubious that this will make any difference in practice, but certain
      people insisted.)  Arrange to cache the results of parsing the GUC variable
      instead of recomputing from scratch on every demand, and push usage of the
      cache down to the bottommost fd.c level.
      24ee8af5
  34. 04 6月, 2007 1 次提交
    • T
      Create a GUC parameter temp_tablespaces that allows selection of the · acfce502
      Tom Lane 提交于
      tablespace(s) in which to store temp tables and temporary files.  This is a
      list to allow spreading the load across multiple tablespaces (a random list
      element is chosen each time a temp object is to be created).  Temp files are
      not stored in per-database pgsql_tmp/ directories anymore, but per-tablespace
      directories.
      
      Jaime Casanova and Albert Cervera, with review by Bernd Helmle and Tom Lane.
      acfce502
  35. 18 5月, 2007 1 次提交