model-writtenrun 4675 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alan Hodgson reported that DISABLE TRIGGER ALL failed on a partitioned table with a foreign key in PostgreSQL 15.2, while the same example succeeded on 14.7, affecting Ruby on Rails tests #1.
- Tom Lane reproduced the failure and traced it to recursive trigger lookup using the parent's name despite foreign-key triggers having distinct names; Alvaro Herrera identified the historical change explaining the version difference and agreed that using OIDs could solve it #2 #3.
- Tom Lane supplied a patch that matches child triggers by tgparentid instead of name and tests disabling foreign-key triggers on a partitioned table #5.
- Alvaro Herrera endorsed the patch, and Tom Lane said he would prepare it for commit while clarifying that older branches did not exhibit the reported error #6 #7.
- Further testing showed that PostgreSQL 12–14 silently left child triggers enabled; Tom Lane explained that those versions lacked the parent-trigger linkage needed by this fix and favored leaving their behavior unchanged because recursive disabling of all triggers would also affect non-inherited triggers #8.
- After the final thread message, Tom Lane committed the patch with unchanged code and tests plus documentation clarifications as 6949b921d5, with a backport to PostgreSQL 15; the older-version behavior discussed in #8 remained outside this fix.