| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: WAL log VM setting for empty pages in XLOG_HEAP2_PRUNE_VACUUM_SC |
| Date: | 2026-03-24 21:31:53 |
| Message-ID: | E1w59Ls-001IWC-13@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
WAL log VM setting for empty pages in XLOG_HEAP2_PRUNE_VACUUM_SCAN
As part of removing XLOG_HEAP2_VISIBLE records, phase I of VACUUM now
marks empty pages all-visible and all-frozen in a
XLOG_HEAP2_PRUNE_VACUUM_SCAN record.
This has no real independent benefit, but empty pages were the last user
of XLOG_HEAP2_VISIBLE, so by making this change we can next remove all
of the XLOG_HEAP2_VISIBLE code.
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>
Reviewed-by: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Earlier version Reviewed-by: Robert Haas <robertmhaas(at)gmail(dot)com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a759ced2f1e2f817005c1b8ee92d0626764da7d1
Modified Files
--------------
src/backend/access/heap/pruneheap.c | 33 ++++++++++++++++++---------
src/backend/access/heap/vacuumlazy.c | 44 ++++++++++++++++++++++--------------
2 files changed, 49 insertions(+), 28 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Melanie Plageman | 2026-03-24 22:00:58 | pgsql: Remove XLOG_HEAP2_VISIBLE entirely |
| Previous Message | Melanie Plageman | 2026-03-24 20:53:00 | pgsql: WAL log VM setting during vacuum phase I in XLOG_HEAP2_PRUNE_VAC |