Only skip pages marked as clean in the visibility map, if the last 32
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 22 Jan 2009 19:25:00 +0000 (19:25 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 22 Jan 2009 19:25:00 +0000 (19:25 +0000)
commitbf136cf6e376ae1a636341e5c8471c55299f9122
tree7be7ebf321713f1eaa365c929004c26355c7c486
parentc079090bbc8ab43525d07cbd9572a3b0a76051aa
Only skip pages marked as clean in the visibility map, if the last 32
pages were marked as clean as well. The idea is to avoid defeating OS
readahead by skipping a page here and there, and also makes it less likely
that we miss an opportunity to advance relfrozenxid, for the sake of only
a few skipped pages.
src/backend/commands/vacuumlazy.c