Utilize the visibility map in autovacuum, too. There was an oversight in
commitbdd6c4b536c97e55eb41688a65da2ad1c7e734d4
authorheikki <heikki>
Thu, 4 Dec 2008 11:42:24 +0000 (4 11:42 +0000)
committerheikki <heikki>
Thu, 4 Dec 2008 11:42:24 +0000 (4 11:42 +0000)
tree5a9c5c90b2001ed494c303d798bc016c0eac1558
parente57ac8337557d0cba0b5f7f2dd58aee6370c7b86
Utilize the visibility map in autovacuum, too. There was an oversight in
the visibility map patch that because autovacuum always sets
VacuumStmt->freeze_min_age, visibility map was never used for autovacuum,
only for manually launched vacuums. This patch introduces a new scan_all
field to VacuumStmt, indicating explicitly whether the visibility map
should be used, or the whole relation should be scanned, to advance
relfrozenxid. Anti-wraparound vacuums still need to scan all pages.
src/backend/commands/vacuumlazy.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/postmaster/autovacuum.c
src/include/nodes/parsenodes.h