model-writtenrun 3524 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bertrand Drouvot proposed preserving statistics when replication slots are invalidated in #1, explaining that the statistics deletion likely survived an earlier design that dropped slots instead of invalidating them.
- Michael Paquier supported retaining statistics for debugging and requested a cheap regression test in #2; Bertrand supplied it in #3, first waiting for nonempty statistics so that killing the active slot process would not make the check unreliable.
- Michael verified that restoring the statistics deletion made the new test fail and recommended against backpatching the behavior change in #4, which Bertrand accepted in #5.
- Michael committed #3 as d6e171fed6 with light test wording and formatting edits; the commit also documented that the removed call lacked ReplicationSlotAllocationLock, but judged the practical risk too limited to warrant backpatching.
- Michael proposed a separate patch enforcing exclusive ownership of ReplicationSlotAllocationLock when creating or dropping slot statistics in #6, and Bertrand approved it in #7.
- Alexander Lakhin reported that a related, previously known assertion failure still reproduced in #8; Michael acknowledged in #9 that the statistics-entry locking issue still needed attention, leaving that separate problem unresolved in this thread.
- After the final thread message, Michael committed the assertion patch from #6 unchanged as 77cf6a78de, with Bertrand credited as reviewer, completing both attached changes.