From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor heap_page_prune_and_freeze() parameters into a struct
Date: Thu, 20 Nov 2025 15:35:07 +0000
Message-ID: <E1vM6gc-000UMt-2m@gemulon.postgresql.org> (raw)
Refactor heap_page_prune_and_freeze() parameters into a struct
heap_page_prune_and_freeze() had accumulated an unwieldy number of input
parameters and upcoming work to handle VM updates in this function will
add even more.
Introduce a new PruneFreezeParams struct to group the function’s input
parameters, improving readability and maintainability.
Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Discussion: https://postgr.es/m/yn4zp35kkdsjx6wf47zcfmxgexxt4h2og47pvnw2x5ifyrs3qc%407uw6jyyxuyf7
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1937ed70621e203c99e651ce4430dd217743d150
Modified Files
--------------
src/backend/access/heap/pruneheap.c | 91 ++++++++++++++++--------------------
src/backend/access/heap/vacuumlazy.c | 12 +++--
src/include/access/heapam.h | 63 ++++++++++++++++++++-----
src/tools/pgindent/typedefs.list | 1 +
4 files changed, 100 insertions(+), 67 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: Refactor heap_page_prune_and_freeze() parameters into a struct
In-Reply-To: <E1vM6gc-000UMt-2m@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