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: Split heap_page_prune_and_freeze() into helpers
Date: Wed, 26 Nov 2025 16:02:19 +0000
Message-ID: <E1vOHyE-001WHa-31@gemulon.postgresql.org> (raw)

Split heap_page_prune_and_freeze() into helpers

Refactor the setup and planning phases of pruning and freezing into
helpers. This streamlines heap_page_prune_and_freeze() and makes it more
clear when the examination of tuples ends and page modifications begin.

No code change beyond what was required to extract the code into helper
functions.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/mhf4vkmh3j57zx7vuxp4jagtdzwhu3573pgfpmnjwqa6i6yj5y%40sy4ymcdtdklo

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e135e044572e88291343f45ce65b406ac963b0e7

Modified Files
--------------
src/backend/access/heap/pruneheap.c | 559 ++++++++++++++++++++----------------
1 file changed, 307 insertions(+), 252 deletions(-)



Message-ID: <E1vOHyE-001WHa-31@gemulon.postgresql.org>
Permalink:  ../E1vOHyE-001WHa-31@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vOHyE-001WHa-31@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: Split heap_page_prune_and_freeze() into helpers
  In-Reply-To: <E1vOHyE-001WHa-31@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