model-writtenrun 6986 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Melanie Plageman proposed a pg_visibility regression test for vacuum restoring a removed visibility map while the heap page requires no modification, retaining unconditional buffer dirtying because optimizing this uncommon case was not worthwhile #1.
- Srinath Reddy Sadipiralla observed that the existing code already sets PD_ALL_VISIBLE and dirties the buffer; Melanie clarified that the test guards against future attempts to skip dirtying, citing Andres Freund's off-list explanation of WAL registration requirements #2 #3.
- Melanie also explained that the separate all-frozen branch always receives an already dirty heap buffer, motivating a related patch in another thread to merge the visibilitymap_set() branches and dirty the buffer unconditionally #3.
- Srinath tested the patch and approved it, while Kirill Reshke confirmed that the test exposes an assertion failure under an unsafe optimization and suggested documenting the conditional dirtying #4 #5.
- In the final message, Melanie preferred removing conditional dirtying through the related refactoring and confirmed that its patch already included this independently useful test; no revised attachment or commit announcement appeared in this thread #6.
- The test subsequently landed with added visibility-map and page-header checks alongside the lazy_scan_prune() refactoring in 21796c267d, whose latest matching patchset is #610885 in thread #51787; the final commit is therefore attributed to that thread, while #1 remains the test's origin.