model-writtenrun 9487 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Robert Haas announcing support for foreign-table tuple routing and COPY, including postgres_fdw support, in #1.
- A year later, Laurenz Albe reported that COPY could call ExecForeignInsert without the initialization existing FDWs expected and proposed requiring BeginForeignInsert in #2, then extended the proposed guard to tuple routing in #6.
- Amit Langote initially supported the guard in #4, but Etsuro Fujita argued in #5 that FDWs could legitimately support these operations without an initialization callback and could reject unsupported operations themselves.
- Robert Haas noted that FDW APIs evolve across major releases in #7, while Andres Freund warned in #8 that backpatching the guard would break already-working FDWs in a minor release; Laurenz proposed limiting it to PostgreSQL 12 in #10, but Andres rejected another compatibility change in #11.
- Laurenz accepted leaving runtime behavior unchanged in #12, and Amit withdrew his initial support in #13 after recognizing that a null BeginForeignInsert callback was explicitly allowed.
- Etsuro proposed documenting the FDW's responsibility to reject unsupported operations in #14, and Laurenz supplied wording about the changed ExecForeignInsert calling convention and requested a PostgreSQL 11 compatibility warning in #15.
- After Simon Riggs suggested examining existing FDWs in #16, Laurenz identified Multicorn's dependence on the old initialization sequence in #17, reinforcing the need to warn FDW authors while accepting that the runtime change would not proceed.
- Etsuro posted the replacement documentation patch in #18, explaining that separate callbacks for COPY and different tuple-routing cases would increase maintenance costs; Laurenz endorsed the revised wording in #19.
- Amit proposed clarifying the distinction between direct INSERT and routed insertion in #20, but Etsuro retained the shorter wording because its documentation context already supplied that distinction in #21.
- Etsuro committed the callback documentation from #18 with a minor wording edit as 90fca7a35a; its PostgreSQL 11 backport also included the release-note warning, and #22 closed the thread by announcing the push, leaving the runtime restrictions abandoned.