1. 16 11月, 2015 1 次提交
    • H
      Move GPDB-specific GUCs to separate file. · 69af7ce7
      Heikki Linnakangas 提交于
      This makes merging and diffing with upstream easier. There were so many
      GPDB-added GUCs in guc.c that "git merge" didn't handle it very well, and
      you easily got merge conflicts that were error-prone to fix manually.
      
      I kept a few GUCs in guc.c that are not present in REL8_2_0, because they
      were backported from later PostgreSQL versions, rather than being
      completely GPDB-specific.
      
      Clean up the diff between guc.c and upstream, by removing unnecessary
      includes, reordering a few GUCs to match upstream better, and similar
      cosmetic changes.
      
      I had to move MAX_KILOBYTES from guc.c to guc_tables.h, because guc_gp.c
      needs it too. I also had to export assign_msglvl() function from guc.c, so
      that it can be called from other assign_* functions from guc_gp.c. And I
      had to add the code to process the ConfigureNames*_gp arrays in addition
      to the upstream ones. These things increase the diff against upstream, but
      not by too much, IMHO. I also copy-pasted constants like MS_PER_S and
      KB_PER_MB, which seems safe as those are natural constants, and should
      never change.
      69af7ce7
  2. 14 11月, 2015 1 次提交
  3. 11 11月, 2015 1 次提交
    • D
      fix: allow classpath to be absolute · 239d6124
      Dave Cramer 提交于
      Previously the  classpath was relative
      to $GPHOME/lib/postgresql/java/
      
      The implication of this is that in order to reference jars outside
      of this directory the classpath will look like ../../../ etc.
      
      This patch retains that behaviour but adds the ability to use absolute
      paths.
      
      For security purposes changing the classpath can only be done by a
      super user or set in postgresql.conf
      239d6124
  4. 05 11月, 2015 1 次提交
  5. 30 10月, 2015 1 次提交
  6. 28 10月, 2015 1 次提交
  7. 29 11月, 2006 1 次提交
  8. 21 11月, 2006 1 次提交
  9. 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
  10. 20 10月, 2006 1 次提交
  11. 08 10月, 2006 1 次提交
  12. 07 10月, 2006 1 次提交
  13. 04 10月, 2006 2 次提交
    • B
      pgindent run for 8.2. · f99a569a
      Bruce Momjian 提交于
      f99a569a
    • 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
  14. 23 9月, 2006 2 次提交
  15. 03 9月, 2006 3 次提交
  16. 02 9月, 2006 1 次提交
  17. 31 8月, 2006 1 次提交
  18. 29 8月, 2006 1 次提交
  19. 28 8月, 2006 1 次提交
  20. 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
  21. 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
  22. 14 8月, 2006 1 次提交
  23. 13 8月, 2006 3 次提交
  24. 12 8月, 2006 4 次提交
  25. 29 7月, 2006 1 次提交
    • T
      Adjust initialization sequence for timezone_abbreviations so that · 033a477e
      Tom Lane 提交于
      it's handled just about like timezone; in particular, don't try
      to read anything during InitializeGUCOptions.  Should solve current
      startup failure on Windows, and avoid wasted cycles if a nondefault
      setting is specified in postgresql.conf too.  Possibly we need to
      think about a more general solution for handling 'expensive to set'
      GUC options.
      033a477e
  26. 27 7月, 2006 1 次提交
  27. 26 7月, 2006 2 次提交
  28. 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
  29. 14 7月, 2006 2 次提交