1. 17 6月, 2011 1 次提交
  2. 16 6月, 2011 8 次提交
    • T
      307a4c2c
    • H
      cb94db91
    • S
      Respect Hot Standby controls while recycling btree index pages. · 758bd2a4
      Simon Riggs 提交于
      Btree pages were recycled after VACUUM deletes all records on a
      page and then a subsequent VACUUM occurs after the RecentXmin
      horizon is reached. Using RecentXmin meant that we did not respond
      correctly to the user controls provide to avoid Hot Standby
      conflicts and so spurious conflicts could be generated in some
      workload combinations. We now reuse pages only when we reach
      RecentGlobalXmin, which can be much later in the presence of long
      running queries and is also controlled by vacuum_defer_cleanup_age
      and hot_standby_feedback.
      
      Noah Misch and Simon Riggs
      758bd2a4
    • T
      Use single quotes in preference to double quotes for protecting pathnames. · 1568fa75
      Tom Lane 提交于
      Per recommendation from Peter.  Neither choice is bulletproof, but this
      is the existing style and it does help prevent unexpected environment
      variable substitution.
      1568fa75
    • T
      Rework parsing of ConstraintAttributeSpec to improve NOT VALID handling. · e1ccaff6
      Tom Lane 提交于
      The initial commit of the ALTER TABLE ADD FOREIGN KEY NOT VALID feature
      failed to support labeling such constraints as deferrable.  The best fix
      for this seems to be to fold NOT VALID into ConstraintAttributeSpec.
      That's a bit more general than the documented syntax, but it allows
      better-targeted syntax error messages.
      
      In addition, do some mostly-but-not-entirely-cosmetic code review for
      the whole NOT VALID patch.
      e1ccaff6
    • B
      e3df3572
    • T
      Fix failure to account for memory used by tuplestore_putvalues(). · 10db3de6
      Tom Lane 提交于
      This oversight could result in a tuplestore using much more than the
      intended amount of memory.  It would only happen in a code path that loaded
      a tuplestore via tuplestore_putvalues(), and many of those won't emit huge
      amounts of data; but cases such as holdable cursors and plpgsql's RETURN
      NEXT command could have the problem.  The fix ensures that the tuplestore
      will switch to write-to-disk mode when it overruns work_mem.
      
      The potential overrun was finite, because we would still count the space
      used by the tuple pointer array, so the tuplestore code would eventually
      flip into write-to-disk mode anyway.  When storing wide tuples we would
      go far past the expected work_mem usage before that happened; but this
      may account for the lack of prior reports.
      
      Back-patch to 8.4, where tuplestore_putvalues was introduced.
      
      Per bug #6061 from Yann Delorme.
      10db3de6
    • T
      Fix oversights in pg_basebackup's -z (compression) option. · 31156ce8
      Tom Lane 提交于
      The short-form -z switch didn't work, for lack of telling getopt_long
      about it; and even if specified long-form, it failed to do anything,
      because the various tests elsewhere in the file would take
      Z_DEFAULT_COMPRESSION (which is -1) as meaning "don't compress".
      
      Per bug #6060 from Shigehiro Honda, though I editorialized on his patch
      a bit.
      31156ce8
  3. 15 6月, 2011 10 次提交
  4. 14 6月, 2011 12 次提交
  5. 13 6月, 2011 4 次提交
  6. 12 6月, 2011 4 次提交
  7. 11 6月, 2011 1 次提交