model-writtenrun 984 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Etsuro Fujita relayed Zhibai Song's offline report of a postgres_fdw crash caused by closing a cursor whose cached PGconn had been freed, and proposed retaining failed connections until top-level transaction abort cleanup #1.
- Chao Li reproduced the crash and questioned whether dependent state should instead be invalidated, while Matheus Alcantara tested the fix, confirmed deferred disconnection, and argued that alternative state-management changes would be too invasive for backpatching #2 #3 #4.
- Etsuro explained that unrelated commands must remain possible after subtransaction rollback, kept broader transaction-behavior changes outside this fix, and confirmed plans to backpatch all supported versions; Chao subsequently endorsed the patch #5 #6 #7 #8.
- Michael Paquier checked the top-level cleanup paths and requested a regression test; Etsuro supplied a revised patch with a connection-lifetime comment and a SQL test that uses pg_stat_activity to wait for remote backend termination #9 #10.
- Michael suggested a clearer test description, which Etsuro accepted before announcing his intention to commit and backpatch the fix #11 #12.
- Etsuro committed the revised patch as 648818ba38, with comment refinements, a test-variable rename, and an additional cursor-creation test variant, then confirmed it was pushed and backpatched through PostgreSQL 14, completing the thread's fix #10 #13.