model-writtenrun 9349 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Stepan Yankevych reported that PostgreSQL 11.1 rejected both creating and attaching a foreign partition beneath a table with indexes and a primary key in #1; Alvaro Herrera responded with an initial, compile-only patch to skip index propagation onto foreign tables in #2.
- Tom Lane warned that silently skipping UNIQUE indexes would be unsafe and suggested eventual FDW involvement in index creation in #3; Alvaro agreed that uniqueness must remain disallowed and that FDW support was beyond the immediate fix in #4.
- Stepan requested documentation of the restriction in #5, and Etsuro Fujita supplied a separate patch for the command reference pages in #8, preferring those pages over expanding the introductory partitioning documentation.
- Amit Langote and Etsuro discussed possible future benefits of foreign-table indexes, including cost estimation and ON CONFLICT support, in #9 and #12, while Etsuro treated foreign unique constraints as a new feature in #10.
- After Amit reviewed the documentation in #11, Etsuro committed #8 as 3e6b0c4729 with one corrected cross-reference and a PostgreSQL 11 backport, announcing completion in #13.
- Returning in June, Alvaro explained that the original implementation missed several paths and posted #14, covering index creation, foreign-partition creation and attachment, uniqueness rejection, and regression tests while asking whether to backpatch.
- Pavan Deolasee proposed trusting remote UNIQUE and PRIMARY KEY enforcement in #15, but Alvaro kept that behavioral expansion outside the fix and proposed backpatching only support for ordinary indexes in #16.
- Amit reviewed the revised code in #17, questioning the separate attachment precheck and recommending an internal-error diagnostic; Alvaro accepted the diagnostic change but retained the precheck, explaining his intent to avoid wasted index-building work in #18 and #20.
- Alvaro committed #14 as 55ed3defc9 with refined diagnostics, comments, and documentation, reporting the master and PostgreSQL 11 landing in #21 and clarifying its timing in #23.
- In September, Stepan reported that primary-key creation still failed on PostgreSQL 11.5 in #24; Etsuro confirmed in #25 that both fixes had landed but UNIQUE and PRIMARY KEY indexes remained deliberately unsupported with foreign partitions.