| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Save vmbuffer in heap-specific scan descriptors for on-access pr |
| Date: | 2026-03-15 15:11:24 |
| Message-ID: | E1w1n7j-000IV8-09@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://postgr.es/m/C3AB3F5B-626E-4AAA-9529-23E9A20C727F%40gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/99bf1f8aa6cd8029cb9ce17d4a804eed386bec97
Modified Files
--------------
src/backend/access/heap/heapam.c | 12 +++++++++++-
src/backend/access/heap/heapam_handler.c | 12 ++++++++++--
src/backend/access/heap/pruneheap.c | 6 +++++-
src/include/access/heapam.h | 19 ++++++++++++++++---
4 files changed, 42 insertions(+), 7 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Melanie Plageman | 2026-03-15 15:28:12 | Re: pgsql: Make typeof and typeof_unqual fallback definitions work on C++11 |
| Previous Message | Melanie Plageman | 2026-03-15 14:43:43 | pgsql: Avoid BufferGetPage() calls in heap_update() |