]> granicus.if.org Git - postgresql/commit
Utilize the visibility map in autovacuum, too. There was an oversight in
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 4 Dec 2008 11:42:24 +0000 (11:42 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 4 Dec 2008 11:42:24 +0000 (11:42 +0000)
commit7537f52a00acb0a2be60a90d9ec384c5935a1695
treef658914827190e0b65c9b8551a1776d8e8c70bfb
parent69b3383cfbbd82ef8a7a92a96f2a70388c13db2a
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