]> granicus.if.org Git - postgresql/commit
Count locked pages that don't need vacuuming as scanned.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 18 Nov 2013 07:51:09 +0000 (09:51 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 18 Nov 2013 07:51:09 +0000 (09:51 +0200)
commit4c697d8f4845823a8af67788b219ffa4516ad14c
treef1a2c0858f3e6cceaba1a8c2efd48ee947c4daef
parentf901bb50e33ad95593bb68f7b3b55eb2e47607dc
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.
src/backend/commands/vacuumlazy.c