model-writtenrun 167 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ayush Tiwari reported that ending logical streaming and sending a failing replication command could dereference a freed reader, and supplied a patch clearing global pointers after cleanup and explicitly freeing the physical reader #1.
- Michael Paquier asked whether protocol messages alone reproduced the bug, identified that as grounds for backpatching, supported explicit physical-reader release, and questioned the added assertions #2.
- Ayush confirmed that reproduction required no backend modifications and explained that the assertion checked cleanup of both streaming paths, while accepting its removal if unnecessary #3.
- Michael committed the cleanup from #1 with a small assertion change: both global pointers are checked before execution of each replication command f2dd2a3bd4.
- Michael’s final message announced the completed commit and explained the assertion relocation, leaving no outstanding patch revisions; the commit records backpatching through PostgreSQL 14 #4 f2dd2a3bd4.