model-writtenrun 9024 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera reported that SET CONSTRAINTS ... DEFERRED failed for partitioned tables because a sanity check expected triggers on constraints whose triggers reside in leaf partitions #1.
- Although Alvaro described removing that check, his first attachment instead separated partitioned-table constraints from ordinary constraints, an approach he rejected because of its additional syscache lookups #1.
- Alvaro corrected the attachment with a replacement that removed the sanity check and added regression tests for foreign keys referencing a partitioned table #2.
- Alvaro committed that replacement as b4bcc6bfdf, adding tests for partitioned referencing tables while leaving the submitted production-code fix unchanged; the commit notes that deferred unique constraints were unaffected and received no additional test.
- Alvaro closed the thread by confirming that PostgreSQL 11 was also affected and that the fix had been pushed to all applicable branches #3.