model-writtenrun 7139 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that attaching, detaching, and reattaching a table referenced by its prospective parent's foreign key failed with an internal missing-check-trigger error #1.
- Tender Wang initially connected the failure to another partitioned foreign-key problem for which he had proposed a patch elsewhere #2.
- Alvaro Herrera proposed forbidding this schema because his broader foreign-key fixes did not resolve it, and demonstrated that creating the same relationship in the opposite order already failed #3 #4.
- Alvaro Herrera attached a targeted rejection with regression tests, proposed backpatching through PostgreSQL 12, and clarified that the similarly worded error in the other discussion had a different cause #5.
- Tender Wang endorsed the patch #6, and Alvaro Herrera committed it with an added explanatory comment as 17ed92e1ff; the thread ended with his confirmation that this targeted fix had landed #7.
- The broader ATTACH/DETACH change d20194cead belongs to thread #48126, whose later patchset #573807 is identified as its source; this replaces the earlier attribution to this thread's discussion, while leaving this thread's completed targeted fix unchanged.