Add comment about keeping PD_ALL_VISIBLE and VM in sync
authorMelanie Plageman <[email protected]>
Wed, 10 Dec 2025 16:10:13 +0000 (11:10 -0500)
committerMelanie Plageman <[email protected]>
Wed, 10 Dec 2025 16:10:13 +0000 (11:10 -0500)
commiteebec3ca4b5ef13d01837966f51b391143670131
treee12d619fc38d2582b8fd0b8b38ca7e4f0a31730e
parentbd298f54a0d60a0376959e10074aa07cbad267f2
Add comment about keeping PD_ALL_VISIBLE and VM in sync

The comment above heap_xlog_visible() about the critical integrity
requirement for PD_ALL_VISIBLE and the visibility map should also be in
heap_xlog_prune_freeze() where we set PD_ALL_VISIBLE.

Oversight in add323da40a6bf9e

Author: Melanie Plageman <[email protected]>
Discussion: https://postgr.es/m/flat/CAAKRu_ZMw6Npd_qm2KM%2BFwQ3cMOMx1Dh3VMhp8-V7SOLxdK9-g%40mail.gmail.com
src/backend/access/heap/heapam_xlog.c