WAL log VM setting for empty pages in XLOG_HEAP2_PRUNE_VACUUM_SCAN

Melanie Plageman <melanieplageman@gmail.com>

Commit: a759ced2f1e2f817005c1b8ee92d0626764da7d1
Author: Melanie Plageman <melanieplageman@gmail.com>
Date: 2026-03-24T21:30:54Z
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@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Earlier version Reviewed-by: Robert Haas <robertmhaas@gmail.com>

Files

PathChange+/−
src/backend/access/heap/pruneheap.c modified +22 −11
src/backend/access/heap/vacuumlazy.c modified +27 −17