Fix oversight in collecting values for cleanup_info records.
Simon Riggs <simon@2ndQuadrant.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/pruneheap.c | modified | +9 −4 |
| src/backend/commands/vacuumlazy.c | modified | +14 −7 |
| src/include/access/heapam.h | modified | +2 −2 |