Remove XLOG_HEAP2_VISIBLE entirely
Melanie Plageman <melanieplageman@gmail.com>
Author:
Melanie Plageman <melanieplageman@gmail.com>
Date: 2026-03-24T21:58:12Z
Releases:
19 (unreleased)
Remove XLOG_HEAP2_VISIBLE entirely There are no remaining users that emit XLOG_HEAP2_VISIBLE records, so it can be removed. This includes deleting the xl_heap_visible struct and all functions responsible for emitting or replaying XLOG_HEAP2_VISIBLE records. Bumps XLOG_PAGE_MAGIC because we removed a WAL record type. Author: Melanie Plageman <melanieplageman@gmail.com> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/flat/CAAKRu_ZMw6Npd_qm2KM%2BFwQ3cMOMx1Dh3VMhp8-V7SOLxdK9-g%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/bufmask.c | modified | +2 −3 |
| src/backend/access/heap/heapam.c | modified | +5 −49 |
| src/backend/access/heap/heapam_xlog.c | modified | +8 −148 |
| src/backend/access/heap/pruneheap.c | modified | +2 −2 |
| src/backend/access/heap/vacuumlazy.c | modified | +8 −8 |
| src/backend/access/heap/visibilitymap.c | modified | +30 −121 |
| src/backend/access/rmgrdesc/heapdesc.c | modified | +0 −10 |
| src/backend/replication/logical/decode.c | modified | +0 −1 |
| src/backend/storage/ipc/standby.c | modified | +5 −4 |
| src/include/access/heapam_xlog.h | modified | +1 −20 |
| src/include/access/visibilitymapdefs.h | modified | +0 −9 |
| src/include/access/visibilitymap.h | modified | +3 −10 |
| src/include/access/xlog_internal.h | modified | +1 −1 |
| src/tools/pgindent/typedefs.list | modified | +0 −1 |
Discussion
Cited messages not in the archive:
flat/CAAKRu_ZMw6Npd_qm2KM+FwQ3cMOMx1Dh3VMhp8-V7SOLxdK9-g@mail.gmail.com