model-writtenrun 9512 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Etsuro Fujita reported that skipping subplan resultrels before EndForeignInsert() prevented FDWs from releasing foreign-insert resources, and supplied a patch moving the callback before the skip in #1.
- David Rowley confirmed that tuple routing invokes BeginForeignInsert() and therefore must handle its cleanup in #2, and Amit Langote agreed in #3.
- David added the bug to the open-items list in #4.
- Etsuro committed the patch from #1 unchanged as 3a45321a49 and announced the push with thanks to both reviewers in #5.
- Etsuro moved the open item to the resolved list in #6, closing the thread with the fix landed.