model-writtenrun 98 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sami Imseih reported a reproducible shutdown assertion after replication-slot reuse and proposed removing the assertion because the stats-file writer already skips dropped entries #1.
- Michael Paquier argued that the assertion exposes real cleanup bugs and should remain, proposing that dropped entries with no references be freed even when their generation has changed #2.
- Michael's concurrency testing exposed additional failures during entry release, leading him to replace the assertion removal with a pgstat_release_entry_ref() fix that tolerates entries disappearing before lookup, frees dropped unreferenced entries, and adds a TAP regression test based on Sami's reproducer #3.
- Sami identified that the replacement patch's generation-check branches performed identical lock releases and recommended merging them #4; Michael accepted the simplification and shared his stress-testing script #5.
- Michael committed the replacement patch with that simplification and unchanged regression test as e9d0600aba, then confirmed backpatching through PostgreSQL 15, completing the thread's fix #6.