From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make heap_page_is_all_visible independent of LVRelState
Date: Tue, 14 Oct 2025 21:44:56 +0000
Message-ID: <E1v8mpE-001iaX-1l@gemulon.postgresql.org> (raw)
Make heap_page_is_all_visible independent of LVRelState
This function only requires a few fields from LVRelState, so pass them
in individually.
This change allows calling heap_page_is_all_visible() from code such as
pruneheap.c, which does not have access to an LVRelState.
Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl%40mdyyqpqzxjek
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3e4705484e0c64c7e90d5cc697a9aaf474287d0d
Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 60 +++++++++++++++++++++++-------------
1 file changed, 38 insertions(+), 22 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: Make heap_page_is_all_visible independent of LVRelState
In-Reply-To: <E1v8mpE-001iaX-1l@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