• Heikki Linnakangas's avatar
    Count locked pages that don't need vacuuming as scanned. · 4c697d8f
    Heikki Linnakangas authored
    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.
    4c697d8f
vacuumlazy.c 52.9 KB