]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Save vmbuffer in heap-specific scan descriptors for on-access pruning
authorMelanie Plageman <melanieplageman@gmail.com>
Sun, 15 Mar 2026 15:09:10 +0000 (11:09 -0400)
committerMelanie Plageman <melanieplageman@gmail.com>
Sun, 15 Mar 2026 15:09:10 +0000 (11:09 -0400)
commit99bf1f8aa6cd8029cb9ce17d4a804eed386bec97
treea8d0768313f1f6cb0aac182e6dbe4a0d409de1f5
parent8d2c1df4f4c54d0a73fcabaf5e25bc55ce7fb5fa
Save vmbuffer in heap-specific scan descriptors for on-access pruning

Future commits will use the visibility map in on-access pruning to fix
VM corruption and set the VM if the page is all-visible.

Saving the vmbuffer in the scan descriptor reduces the number of times
it would need to be pinned and unpinned, making the overhead of doing so
negligible.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/C3AB3F5B-626E-4AAA-9529-23E9A20C727F%40gmail.com
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam_handler.c
src/backend/access/heap/pruneheap.c
src/include/access/heapam.h