| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add helper for freeze determination to heap_page_prune_and_freez |
| Date: | 2025-10-14 19:09:50 |
| Message-ID: | E1v8kP8-001hY1-1P@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Add helper for freeze determination to heap_page_prune_and_freeze
After scanning the line pointers on a heap page during the first phase
of vacuum, we use the information collected to decide whether to use
the assembled freeze plans.
Move this decision logic into a helper function to improve readability.
While here, rename a PruneState member and disambiguate some local
variables in heap_page_prune_and_freeze().
Author: Melanie Plageman <melanieplageman(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/2wk7jo4m4qwh5sn33pfgerdjfujebbccsmmlownybddbh6nawl%40mdyyqpqzxjek
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c8dd6542bae42744c676234dca45972e2cc3dfb2
Modified Files
--------------
src/backend/access/heap/pruneheap.c | 221 +++++++++++++++++++++---------------
1 file changed, 131 insertions(+), 90 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Melanie Plageman | 2025-10-14 21:06:15 | pgsql: Inline TransactionIdFollows/Precedes[OrEquals]() |
| Previous Message | Masahiko Sawada | 2025-10-14 18:46:23 | pgsql: pg_createsubscriber: Add log message when no publications exist |