Add comment about keeping PD_ALL_VISIBLE and VM in sync

Melanie Plageman <melanieplageman@gmail.com>

Commit: eebec3ca4b5ef13d01837966f51b391143670131
Author: Melanie Plageman <melanieplageman@gmail.com>
Date: 2025-12-10T16:10:13Z
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 <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/flat/CAAKRu_ZMw6Npd_qm2KM%2BFwQ3cMOMx1Dh3VMhp8-V7SOLxdK9-g%40mail.gmail.com

Files

PathChange+/−
src/backend/access/heap/heapam_xlog.c modified +6 −0

Discussion

Cited messages not in the archive: flat/CAAKRu_ZMw6Npd_qm2KM+FwQ3cMOMx1Dh3VMhp8-V7SOLxdK9-g@mail.gmail.com