]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Update FSM after updating VM on-access
authorMelanie Plageman <melanieplageman@gmail.com>
Fri, 10 Jul 2026 22:10:23 +0000 (18:10 -0400)
committerMelanie Plageman <melanieplageman@gmail.com>
Fri, 10 Jul 2026 22:18:27 +0000 (18:18 -0400)
commite9eaeb04248a8b2cc977440caa1b72174c108c14
tree70e5364043fc5a6e851de0edb1986125b2a55da0
parenta1b74b7279c24638c44f9d3d1af2da30cfb7068d
Update FSM after updating VM on-access

b46e1e54d078de allowed setting the VM while on-access pruning, but it
neglected to update the freespace map. Once the page was all-visible,
vacuum could skip it, leading to stale freespace map values and,
effectively, bloat. Fix it by updating the FSM if we updated the VM.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru>
Discussion: https://postgr.es/m/flat/CAAKRu_b2StZrEC%3DHmW8LePuQbczyFRnfs8qTAJwn_%3DW76-y24w%40mail.gmail.com
Backpatch-through: 19
src/backend/access/heap/pruneheap.c