model-writtenrun 5003 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ilya Gladyshev reported that logical replication into a foreign-table partition could repeatedly crash the worker and supplied recursive partition-relkind checks in #1; Dilip Kumar endorsed the fix and requested a regression test in #2.
- Tom Lane questioned unnecessary catalog lookups and whether advance checks could handle newly added partitions in #3, while Alvaro Herrera favored eventual foreign-table replication support and targeted runtime checks for backbranches in #4; Shi Yu supplied an inline runtime check in #5.
- Ilya defended checking both subscription DDL and relation opening in #7 and #8, then submitted a revision using opened relations and deferred name lookups, reporting that it handled newly attached partitions but still lacked tests in #9.
- Tom replaced recursive validation with a check after partition routing in #10, explaining that rejecting every foreign partition would unnecessarily break configurations that replicate only into ordinary current partitions while keeping older data in foreign partitions.
- Tom committed be541efbfd from #10, adding the missing cross-partition UPDATE check and a separate destination-relation variable; his announcement in #11 explained that the minimal fix was pushed ahead of backbranch releases, while lookup optimization should remain development-branch work and regression-test coverage remained unresolved.
- Ilya accepted the runtime-only design and submitted a separate optimization on top of the committed fix in #12, reusing the deferred name lookups from his earlier revision; the crash fix had landed, while this optimization remained pending at the end of the thread.