Count locked pages that don't need vacuuming as scanned.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3379263b6ded774acb96288d1e67caa37dcba0de
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-11-18T08:12:22Z
Releases: 9.2.6
Count locked pages that don't need vacuuming as scanned.

Previously, if VACUUM skipped vacuuming a page because it's pinned, it
didn't count that page as scanned. However, that meant that relfrozenxid
was not bumped up either, which prevented anti-wraparound vacuum from
doing its job.

Report by Миша Тюрин, analysis and patch by Sergey Burladyn and Jeff Janes.
Backpatch to 9.2, where the skip-locked-pages behavior was introduced.

Files

PathChange+/−
src/backend/commands/vacuumlazy.c modified +1 −0