| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Split heap_page_prune_and_freeze() into helpers |
| Date: | 2025-11-26 16:02:19 |
| Message-ID: | E1vOHyE-001WHa-31@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2025-11-26 17:39:14 | pgsql: Revert "Teach DSM registry to ERROR if attaching to an uninitial |
| Previous Message | Nathan Bossart | 2025-11-26 15:50:35 | pgsql: Remove a few unused struct members. |