model-writtenrun 1130 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yasuo Honda reported in #1 that toggling foreign keys from NOT ENFORCED back to ENFORCED lost their triggers’ deferrability, blocking a table-owner-accessible alternative to disabling triggers for Ruby on Rails fixtures, and supplied a two-line fix with catalog tests.
- Fujii Masao reproduced the problem on master and requested tests proving that violations remain deferred until COMMIT in #2; Yasuo added runtime coverage for initially deferred and initially immediate constraints, including explicit deferral, in #3.
- Fujii supplied #4 with the same backend fix, moved the tests to a section where the constraint actually starts ENFORCED, expanded trigger-state checks, removed the initially immediate case as unnecessary, and prepared the commit message for backpatching through PostgreSQL 18.
- Fujii committed #4 unchanged as 2497dac556, with a PostgreSQL 18 backport, and announced the push in #5.
- The thread ended with the fix landed and Yasuo thanking Fujii in #6, explaining that its release would let him complete NOT ENFORCED foreign-key support in Ruby on Rails.