OSDN Git Service

Fix oversight in collecting values for cleanup_info records.
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 21 Apr 2010 17:20:56 +0000 (17:20 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 21 Apr 2010 17:20:56 +0000 (17:20 +0000)
commitbc2b85d90481c317c7d4efcf5dfc8c134f6105f9
treee2daee04ed2dfbbdb604ba847cb8fce591bf5411
parenta2c3931a244b67115a0eac1ee5fde9eb7cb4e42c
Fix oversight in collecting values for cleanup_info records.
vacuum_log_cleanup_info() now generates log records with a valid
latestRemovedXid set in all cases. Also be careful not to zero the
value when we do a round of vacuuming part-way through lazy_scan_heap().
Incidentally, this reduces frequency of conflicts in Hot Standby.
src/backend/access/heap/pruneheap.c
src/backend/commands/vacuumlazy.c
src/include/access/heapam.h