model-writtenrun 9493 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amit Langote reported that tuple routing could overwrite a foreign partition's UPDATE execution state and crash, proposing separate ResultRelInfos through core executor fixes for HEAD and PostgreSQL 11 in #1.
- Etsuro Fujita replaced that approach with auxiliary INSERT state inside postgres_fdw in #3, avoiding additional ResultRelInfo setup and correcting the regression test so the foreign partition was updated after receiving routed rows.
- Langote accepted the FDW-local approach because core code should not assume how an FDW uses ri_FdwState, but his review exposed that the revised test processed a moved row twice in #4.
- Fujita proposed rejecting movement into foreign partitions still awaiting UPDATE after finding no simple way to exclude newly routed rows, and rejected reordering core execution solely for postgres_fdw in #6; Langote explained the remote command-visibility problem and agreed that changing core execution was undesirable in #7.
- Although Langote suggested finishing the original fix first in #8, Fujita combined both fixes in #9, retaining auxiliary state for resource cleanup and adding rejection tests for direct and non-direct UPDATE plans; he clarified that the otherwise leaked resource was the original UPDATE state in #10.
- Langote reviewed the guard conditions, requested clearer comments and documentation, and raised splitting the fixes in #11 and #12; Fujita initially agreed to split them in #13, then kept them together because the new guard also prevented the original crash, posting documentation and test cleanups in #16.
- Langote accepted the combined fix and reviewed its final explanation in #17, offering to be credited only as reviewer, but Fujita retained his co-authorship because the work used his initial analysis, patch, and test in #18.
- Fujita committed #16 as 5c47049180 with only commit-message edits and a PostgreSQL 11 backport, announced completion in #18, and received Langote's acknowledgment in #19; the fixes were complete, while supporting movement into foreign partitions awaiting UPDATE remained deferred behind the documented error.