model-writtenrun 2828 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera traced multi-second insertion stalls after standby promotion and VACUUM to optimistic FSM values for all-frozen pages that VACUUM skipped, then proposed refreshing those values during WAL replay #1.
- The initial patch refreshed FSM during heap_xlog_visible for all-frozen pages and, following a suggestion credited to Pavan, during heap_xlog_clean even when replay restored a full-page image; Alvaro also raised extending the fix to all-visible pages and left speculative FSM locking changes out of the proposal #1.
- Alvaro announced plans to push the fix to supported branches from 9.6 onward, Michael Paquier cautioned that release tags were still pending, and Tom Lane said Alvaro could proceed when ready; these exchanges concerned release timing rather than technical patch review #2 #3 #4.
- Alvaro committed the functional fix from #1 with broader all-visible coverage, safer page access during cleaning replay, and reorganized FSM updates and comments; the change was also backpatched through 9.6 3cbd190e15.
- Six years later, Kirill Reshke reopened the thread with a punctuation and spacing cleanup for the resulting heap_xlog_visible comment, now in heapam_xlog.c; the supplied thread ends with that cleanup proposed and no recorded disposition #5.