model-writtenrun 9005 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kyotaro Horiguchi reported intermittent temporary-file leak warnings from parallel hash joins with LIMIT, supplied a reproducer, and proposed closing shared-tuplestore accessors during hash-table destruction #1.
- Thomas Munro reproduced the problem #2, while Tom Lane questioned why existing cleanup did not suffice and advised waiting until the minor-release window passed before backpatching #3.
- Kyotaro traced the leak to workers leaving ExecutePlan() when the leader stopped receiving tuples, bypassing ExecShutdownNode(), and replaced the hash cleanup patch with an executor shutdown fix #4; he withdrew the original approach #5, and Thomas explained that destruction occurs too late for shared-resource cleanup #6.
- Thomas endorsed the executor fix #7 and consolidated shutdown after the execution loop so every normal exit would reach it, leaving broader clarification of shutdown semantics to concurrent discussions #8.
- Kyotaro accepted the revised structure #9, Amit Kapila approved it #10, and Thomas committed it with only comment and commit-text edits as 76cbfcdf3a, announcing the push in #11.
- Months later, Jeremy Finzel reported the same symptoms on PostgreSQL 11.6 and asked whether the fix shipped in 11.7 #12; Tom confirmed its inclusion in 11.7 and 12.2 #13, and Jeremy acknowledged the clarification, leaving no further fix pending in this thread #14.