From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prefix PruneState->all_{visible,frozen} with set_
Date: Thu, 05 Mar 2026 21:57:36 +0000
Message-ID: <E1vyGhM-002ZnV-0t@gemulon.postgresql.org> (raw)
Prefix PruneState->all_{visible,frozen} with set_
The PruneState had members called "all_visible" and "all_frozen" which
reflect not the current state of the page but the state it could be in
once pruning and freezing have been executed. These are then saved in
the PruneFreezeResult so the caller can set the VM accordingly.
Prefix the PruneState members as well as the corresponsding
PruneFreezeResult members with "set_" to clarify that they represent the
proposed state of the all-visible and all-frozen bits for a heap page in
the visibility map, not the current state.
Author: Melanie Plageman <melanieplageman@gmail.com>
Suggested-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/bqc4kh5midfn44gnjiqez3bjqv4zogydguvdn446riw45jcf3y%404ez66il7ebvk
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/34cb4254bdb6d344e2440c721abc11196982ccd5
Modified Files
--------------
src/backend/access/heap/pruneheap.c | 146 ++++++++++++++++++-----------------
src/backend/access/heap/vacuumlazy.c | 18 ++---
src/include/access/heapam.h | 13 ++--
3 files changed, 91 insertions(+), 86 deletions(-)
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: Prefix PruneState->all_{visible,frozen} with set_
In-Reply-To: <E1vyGhM-002ZnV-0t@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