model-writtenrun 8980 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- While constructing a regression test for Mark Dilger's serializable LISTEN assertion failure, Tom Lane discovered unstable notification delivery and stale queue-usage results, and submitted three fixes together in #1.
- Martijn van Oosterhout supported advancing the queue tail before measuring usage, reasoning that delayed cleanup should remain invisible to users, while asking whether that behavior needed documentation in #3.
- Tom Lane identified a further concern with the queue-usage function's side effects and proposed marking it parallel-restricted, despite a successful forced-parallel isolation test, in #4.
- Mark Dilger reported that the three patches eliminated the assertion under his stress test, passed check-world, and looked sound on code review in #5.
- Tom Lane withdrew the proposed PrePrepare_Notify helper because future two-phase support would not need it in #6; Mark questioned whether removing it would weaken runtime error checking in #7, and Tom clarified that the existing handling would remain intact in #8.
- The queue-usage component landed as 8b7ae5a82d, adding the parallel restriction and formatting cleanup to the attached fix from #1.
- The thread ended with Mark's acknowledgment in #9; afterward, the notification-timing component landed with an additional explanatory comment as 7900269724, and the serializable LISTEN fix and regression test landed without the proposed helper as 6b802cfc7f, completing all three fixes.