1. 28 10月, 2015 1 次提交
  2. 02 12月, 2006 1 次提交
  3. 29 11月, 2006 1 次提交
    • T
      Mark to_char(timestamp without timezone) as stable, not immutable, since its · 64353640
      Tom Lane 提交于
      result now depends on the lc_messages setting, as noted by Bruce.
      Also, mark to_number() and the numeric-type variants of to_char() as stable,
      because their results depend on lc_numeric; this is a longstanding oversight.
      Also, mark to_date() and to_char(interval) as stable; although these appear
      not to depend on any GUC variables as of CVS HEAD, that seems a property
      unlikely to survive future improvements.  It seems best to mark all the
      formatting functions stable and be done with it.
      catversion not bumped, because this does not seem critical enough to force
      a post-RC1 initdb, and anyway we cannot do so in the back branches.
      64353640
  4. 28 11月, 2006 1 次提交
    • A
      · 796a3f37
      Andrew Dunstan 提交于
      protect vfprintf from hijacking by Windows gettext just like other members of the *printf family.
      796a3f37
  5. 25 11月, 2006 2 次提交
    • P
      · c11b5228
      PostgreSQL Daemon 提交于
      update for rc1
      c11b5228
    • T
      Change pg_stat_all_tables and sister views to put the recently-added · 988a87a0
      Tom Lane 提交于
      vacuum/analyze timestamp columns at the end, rather than at a random
      spot in the middle as in the original patch.  This was deemed more usable
      as well as less likely to break existing application code.  initdb forced
      accordingly.  In passing, remove former kluge for initializing
      pg_stat_file()'s pg_proc entry --- bootstrap mode was fixed recently
      so that this can be done without any hacks, but I overlooked this usage.
      988a87a0
  6. 23 11月, 2006 1 次提交
  7. 22 11月, 2006 1 次提交
  8. 18 11月, 2006 1 次提交
    • T
      Repair two related errors in heap_lock_tuple: it was failing to recognize · 4f335a3d
      Tom Lane 提交于
      cases where we already hold the desired lock "indirectly", either via
      membership in a MultiXact or because the lock was originally taken by a
      different subtransaction of the current transaction.  These cases must be
      accounted for to avoid needless deadlocks and/or inappropriate replacement of
      an exclusive lock with a shared lock.  Per report from Clarence Gardner and
      subsequent investigation.
      4f335a3d
  9. 09 11月, 2006 1 次提交
  10. 08 11月, 2006 1 次提交
    • P
      · 9b3aee52
      PostgreSQL Daemon 提交于
      Tag as Beta3 ... two outstanding *known* bugs before RC1 ...
      9b3aee52
  11. 06 11月, 2006 3 次提交
    • T
      Revert to the pre-8.2 method of probing for libm, that is, always · 02f37bd8
      Tom Lane 提交于
      include it if it links properly.  It seems too risky to assume that
      standard functions like pow() are not special-cased by the compiler.
      Per report from Andreas Lange that build fails on Solaris cc compiler
      with -fast.  Even though we don't consider that a supported option,
      I'm worried that similar issues will arise with other compilers.
      02f37bd8
    • T
      Fix recently-identified PITR recovery hazard: the base backup could contain · 76d5667b
      Tom Lane 提交于
      stale relcache init files (pg_internal.init), and there is no mechanism for
      updating them during WAL replay.  Easiest solution is just to delete the init
      files at conclusion of startup, and let the first backend started in each
      database take care of rebuilding the init file.  Simon Riggs and Tom Lane.
      
      Back-patched to 8.1.  Arguably this should be fixed in 8.0 too, but it would
      require significantly more code since 8.0 has no handy startup-time scan of
      pg_database to piggyback on.  Manual solution of the problem is possible
      in 8.0 (just delete the pg_internal.init files before starting WAL replay),
      so that may be a sufficient answer.
      76d5667b
    • 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
  12. 02 11月, 2006 1 次提交
    • T
      Fix "failed to re-find parent key" btree VACUUM failure by revising page · 70ce5c90
      Tom Lane 提交于
      deletion code to avoid the case where an upper-level btree page remains "half
      dead" for a significant period of time, and to block insertions into a key
      range that is in process of being re-assigned to the right sibling of the
      deleted page's parent.  This prevents the scenario reported by Ed L. wherein
      index keys could become out-of-order in the grandparent index level.
      
      Since this is a moderately invasive fix, I'm applying it only to HEAD.
      The bug exists back to 7.4, but the back branches will get a different patch.
      70ce5c90
  13. 24 10月, 2006 1 次提交
  14. 20 10月, 2006 3 次提交
  15. 19 10月, 2006 1 次提交
    • T
      Fix up timetz input so that a date is required only when the specified · 877f08da
      Tom Lane 提交于
      timezone actually has a daylight-savings rule.  This avoids breaking
      cases that used to work because they went through the DecodePosixTimezone
      code path.  Per contrib regression failures (mea culpa for not running
      those yesterday...).  Also document the already-applied change to allow
      GMT offsets up to 14 hours.
      877f08da
  16. 16 10月, 2006 1 次提交
    • T
      Redesign the patch for allocation of shmem space and LWLocks for add-on · e0dece12
      Tom Lane 提交于
      modules; the first try was not usable in EXEC_BACKEND builds (e.g.,
      Windows).  Instead, just provide some entry points to increase the
      allocation requests during postmaster start, and provide a dedicated
      LWLock that can be used to synchronize allocation operations performed
      by backends.  Per discussion with Marc Munro.
      e0dece12
  17. 14 10月, 2006 1 次提交
  18. 12 10月, 2006 1 次提交
  19. 08 10月, 2006 1 次提交
  20. 07 10月, 2006 1 次提交
    • T
      Fix SysCacheGetAttr() to handle the case where the specified syscache has not · 6ea8f495
      Tom Lane 提交于
      been initialized yet.  This can happen because there are code paths that call
      SysCacheGetAttr() on a tuple originally fetched from a different syscache
      (hopefully on the same catalog) than the one specified in the call.  It
      doesn't seem useful or robust to try to prevent that from happening, so just
      improve the function to cope instead.  Per bug#2678 from Jeff Trout.  The
      specific example shown by Jeff is new in 8.1, but to be on the safe side
      I'm backpatching 8.0 as well.  We could patch 7.x similarly but I think
      that's probably overkill, given the lack of evidence of old bugs of this ilk.
      6ea8f495
  21. 06 10月, 2006 2 次提交
  22. 05 10月, 2006 5 次提交
  23. 04 10月, 2006 4 次提交
    • B
      pgindent run for 8.2. · f99a569a
      Bruce Momjian 提交于
      f99a569a
    • T
      Switch over to using our own qsort() all the time, as has been proposed · 6edd2b4a
      Tom Lane 提交于
      repeatedly.  Now that we don't have to worry about memory leaks from
      glibc's qsort, we can safely put CHECK_FOR_INTERRUPTS into the tuplesort
      comparators, as was requested a couple months ago.  Also, get rid of
      non-reentrancy and an extra level of function call in tuplesort.c by
      providing a variant qsort_arg() API that passes an extra void * argument
      through to the comparison routine.  (We might want to use that in other
      places too, I didn't look yet.)
      6edd2b4a
    • 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
    • T
      0184c683
  24. 03 10月, 2006 1 次提交
  25. 02 10月, 2006 1 次提交
  26. 30 9月, 2006 1 次提交
  27. 29 9月, 2006 1 次提交
    • T
      Fix IS NULL and IS NOT NULL tests on row-valued expressions to conform to · f213131f
      Tom Lane 提交于
      the SQL spec, viz IS NULL is true if all the row's fields are null, IS NOT
      NULL is true if all the row's fields are not null.  The former coding got
      this right for a limited number of cases with IS NULL (ie, those where it
      could disassemble a ROW constructor at parse time), but was entirely wrong
      for IS NOT NULL.  Per report from Teodor.
      
      I desisted from changing the behavior for arrays, since on closer inspection
      it's not clear that there's any support for that in the SQL spec.  This
      probably needs more consideration.
      f213131f