pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Save vmbuffer in heap-specific scan descriptors for on-access pr
Date: Sun, 15 Mar 2026 15:11:24 +0000
Message-ID: <E1w1n7j-000IV8-09@gemulon.postgresql.org> (raw)

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

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(-)



Message-ID: <E1w1n7j-000IV8-09@gemulon.postgresql.org>
Permalink:  ../E1w1n7j-000IV8-09@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w1n7j-000IV8-09@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Save vmbuffer in heap-specific scan descriptors for on-access pr
  In-Reply-To: <E1w1n7j-000IV8-09@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox