1. 21 11月, 2006 1 次提交
  2. 06 11月, 2006 1 次提交
    • T
      Fix recently-understood problems with handling of XID freezing, particularly · 48188e16
      Tom Lane 提交于
      in PITR scenarios.  We now WAL-log the replacement of old XIDs with
      FrozenTransactionId, so that such replacement is guaranteed to propagate to
      PITR slave databases.  Also, rather than relying on hint-bit updates to be
      preserved, pg_clog is not truncated until all instances of an XID are known to
      have been replaced by FrozenTransactionId.  Add new GUC variables and
      pg_autovacuum columns to allow management of the freezing policy, so that
      users can trade off the size of pg_clog against the amount of freezing work
      done.  Revise the already-existing code that forces autovacuum of tables
      approaching the wraparound point to make it more bulletproof; also, revise the
      autovacuum logic so that anti-wraparound vacuuming is done per-table rather
      than per-database.  initdb forced because of changes in pg_class, pg_database,
      and pg_autovacuum catalogs.  Heikki Linnakangas, Simon Riggs, and Tom Lane.
      48188e16
  3. 05 10月, 2006 1 次提交
  4. 04 10月, 2006 1 次提交
    • B
      The attached patch changes units of the some default values in · 5441a641
      Bruce Momjian 提交于
      postgresql.conf.
      
      - shared_buffers = 32000kB => 32MB
      - temp_buffers = 8000kB => 8MB
      - wal_buffers = 8 => 64kB
      
      The code of initdb was a bit modified to write MB-unit values.
      Values greater than 8000kB are rounded out to MB.
      
      GUC_UNIT_XBLOCKS is added for wal_buffers. It is like GUC_UNIT_BLOCKS,
      but uses XLOG_BLCKSZ instead of BLCKSZ.
      
      Also, I cleaned up the test of GUC_UNIT_* flags in preparation to
      add more unit flags in less bits.
      
      ITAGAKI Takahiro
      5441a641
  5. 03 10月, 2006 1 次提交
  6. 26 9月, 2006 1 次提交
  7. 23 9月, 2006 1 次提交
  8. 15 9月, 2006 1 次提交
  9. 03 9月, 2006 2 次提交
  10. 29 8月, 2006 1 次提交
  11. 28 8月, 2006 1 次提交
  12. 18 8月, 2006 1 次提交
    • T
      Implement archive_timeout feature to force xlog file switches to occur no more · e8ea9e95
      Tom Lane 提交于
      than N seconds apart.  This allows a simple, if not very high performance,
      means of guaranteeing that a PITR archive is no more than N seconds behind
      real time.  Also make pg_current_xlog_location return the WAL Write pointer,
      add pg_current_xlog_insert_location to return the Insert pointer, and fix
      pg_xlogfile_name_offset to return its results as a two-element record instead
      of a smashed-together string, as per recent discussion.
      
      Simon Riggs
      e8ea9e95
  13. 16 8月, 2006 1 次提交
    • T
      Add server support for "plugin" libraries that can be used for add-on tasks · abc3120e
      Tom Lane 提交于
      such as debugging and performance measurement.  This consists of two features:
      a table of "rendezvous variables" that allows separately-loaded shared
      libraries to communicate, and a new GUC setting "local_preload_libraries"
      that allows libraries to be loaded into specific sessions without explicit
      cooperation from the client application.  To make local_preload_libraries
      as flexible as possible, we do not restrict its use to superusers; instead,
      it is restricted to load only libraries stored in $libdir/plugins/.  The
      existing LOAD command has also been modified to allow non-superusers to
      LOAD libraries stored in this directory.
      
      This patch also renames the existing GUC variable preload_libraries to
      shared_preload_libraries (after a suggestion by Simon Riggs) and does some
      code refactoring in dfmgr.c to improve clarity.
      
      Korry Douglas, with a little help from Tom Lane.
      abc3120e
  14. 03 8月, 2006 1 次提交
  15. 25 7月, 2006 1 次提交
    • T
      Remove hard-wired lists of timezone abbreviations in favor of providing · d8b5c95c
      Tom Lane 提交于
      configuration files that can be altered by a DBA.  The australian_timezones
      GUC setting disappears, replaced by a timezone_abbreviations setting (set this
      to 'Australia' to get the effect of australian_timezones).  The list of zone
      names defined by default has undergone a bit of cleanup, too.  Documentation
      still needs some work --- in particular, should we fix Table B-4, or just get
      rid of it?  Joachim Wieland, with some editorializing by moi.
      d8b5c95c
  16. 24 7月, 2006 1 次提交
  17. 28 6月, 2006 2 次提交
  18. 19 6月, 2006 1 次提交
  19. 05 6月, 2006 2 次提交
    • T
      Increase the default value of cpu_index_tuple_cost from 0.001 to 0.005. · e4de635a
      Tom Lane 提交于
      This shouldn't affect simple indexscans much, while for bitmap scans that
      are touching a lot of index rows, this seems to bring the estimates more
      in line with reality.  Per recent discussion.
      e4de635a
    • T
      Add a GUC parameter seq_page_cost, and use that everywhere we formerly · eed6c9ed
      Tom Lane 提交于
      assumed that a sequential page fetch has cost 1.0.  This patch doesn't
      in itself change the system's behavior at all, but it opens the door to
      people adopting other units of measurement for EXPLAIN costs.  Also, if
      we ever decide it's worth inventing per-tablespace access cost settings,
      this change provides a workable intellectual framework for that.
      eed6c9ed
  20. 22 5月, 2006 1 次提交
    • T
      Add a new GUC parameter backslash_quote, which determines whether the SQL · b3eb4ea5
      Tom Lane 提交于
      parser will allow "\'" to be used to represent a literal quote mark.  The
      "\'" representation has been deprecated for some time in favor of the
      SQL-standard representation "''" (two single quote marks), but it has been
      used often enough that just disallowing it immediately won't do.  Hence
      backslash_quote allows the settings "on", "off", and "safe_encoding",
      the last meaning to allow "\'" only if client_encoding is a valid server
      encoding.  That is now the default, and the reason is that in encodings
      such as SJIS that allow 0x5c (ASCII backslash) to be the last byte of a
      multibyte character, accepting "\'" allows SQL-injection attacks as per
      CVE-2006-2314 (further details will be published after release).  The
      "on" setting is available for backward compatibility, but it must not be
      used with clients that are exposed to untrusted input.
      
      Thanks to Akio Ishida and Yasuo Ohgaki for identifying this security issue.
      b3eb4ea5
  21. 12 5月, 2006 1 次提交
  22. 07 3月, 2006 2 次提交
  23. 24 12月, 2005 1 次提交
  24. 23 12月, 2005 1 次提交
  25. 18 11月, 2005 1 次提交
    • T
      Make SQL arrays support null elements. This commit fixes the core array · cecb6075
      Tom Lane 提交于
      functionality, but I still need to make another pass looking at places
      that incidentally use arrays (such as ACL manipulation) to make sure they
      are null-safe.  Contrib needs work too.
      I have not changed the behaviors that are still under discussion about
      array comparison and what to do with lower bounds.
      cecb6075
  26. 10 11月, 2005 2 次提交
  27. 09 10月, 2005 1 次提交
  28. 20 9月, 2005 1 次提交
  29. 12 9月, 2005 1 次提交
    • T
      Tweak TCP-keepalive code so that an invalid setting doesn't cause us · cc3bda37
      Tom Lane 提交于
      to drop connections unceremoniously.  Also some other marginal cleanups:
      don't query getsockopt() repeatedly if it fails, and avoid having the
      apparent definition of struct Port depend on which system headers you
      might have included or not.  Oliver Jowett and Tom Lane.
      cc3bda37
  30. 03 9月, 2005 2 次提交
  31. 30 8月, 2005 2 次提交
  32. 23 8月, 2005 1 次提交
  33. 21 8月, 2005 1 次提交