Utilize the visibility map in autovacuum, too. There was an oversight in
authorHeikki Linnakangas <[email protected]>
Thu, 4 Dec 2008 11:42:24 +0000 (11:42 +0000)
committerHeikki Linnakangas <[email protected]>
Thu, 4 Dec 2008 11:42:24 +0000 (11:42 +0000)
commitde9201be9fb30a05efe3fc8692a220bbddc1c955
tree84cbbd7b731ea20ee32c7d895bb09d310883c6c7
parent990ea8afa1d36aab17380ca98be15e2502f215fa
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