model-writtenrun 10455 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera proposed foreign keys both to and from partitioned tables in #1 and supplied the implementation in #2, bundling prerequisites developed elsewhere; pg_dump support and unusual partition layouts remained unfinished, and removing ONLY from referential-integrity queries was an acknowledged uncertainty.
- Alvaro rebased the implementation and refreshed its prerequisites in #3, after which Robert Haas raised a possible crosscheck_snapshot concurrency problem in #4.
- After a gap, Alvaro returned with #5, incorporating improved row-trigger support, attribute mapping for differing partition layouts, partition-attachment handling, pg_dump changes, and additional tests.
- Once row-trigger support had landed, Alvaro posted the remaining work in #8 and deferred foreign keys referencing partitioned tables because unresolved issues threatened the commitfest deadline; the retained feature gained validation of existing rows when attaching partitions.
- Peter Eisentraut identified redundant rejection checks and missing regression coverage in #9, then reviewed the tests and requested documentation in #10; Alvaro agreed to consolidate tests and document the reduced scope in #11.
- Peter demonstrated that removing ONLY caused cascading deletes to affect ordinary inheritance children in #13, recommending conditional ONLY handling and removal of changes belonging to the deferred referenced-table feature.
- Alvaro incorporated that review in #14, added recursive cloning for subpartitions, separated action-trigger creation from partition check triggers, expanded documentation and tests, and included a newly discovered preexisting assertion bug.
- Alvaro supplied an assertion-failure reproducer in #15, and cd5005bc12 landed the corresponding component of #14 with regression tests for differently positioned foreign-key and primary-key attributes.
- Alvaro demonstrated redundant internal triggers arising from deferred unique constraints in #16, and 851f4b4e14 landed the internal-trigger guard from #14 with that regression coverage.
- Peter accepted the revised feature in #17, and Alvaro explained in #18 that excluding partitioned referenced tables avoided the concurrency scenario he understood Robert to be concerned about.
- The main component of #14 landed as 3de241dba8, with test consolidation, additional referential-action coverage, and small cleanups; Alvaro announced the commit in #19.
- Tom Lane reported broken sepgsql tests in #20, revealing that one referenced-side ONLY had accidentally remained removed; Alvaro restored it in 7d7c99790b and explained the correction in #21, noting that he could not test SELinux locally.
- Alvaro identified missing repeatable-read and serializable foreign-key test coverage in #22; at the thread's close in #23, the reduced feature and fixes had landed, but references to partitioned tables remained deferred, and he invited another developer to take that work forward.