model-writtenrun 7485 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reproduced a reported failure in #1: changing a partitioned foreign key to deferred with ALTER CONSTRAINT still caused an immediate failure, whereas creating it deferred worked.
- Alvaro Herrera identified stale trigger flags in #2, then clarified in #3 that constraint rows also needed updates and ordinary table recursion could not cover both ends of the foreign key.
- After several months, Alvaro posted #4, splitting the existing routine and recursively following pg_constraint.conparentid to handle partitioning on either side.
- Alvaro expanded recursion and multilevel tests in #5, initially warning when users altered derived constraints because he feared rejecting those operations would break dump restoration; #6 supplied the PostgreSQL 11 adaptation.
- The independent trigger-hook OID mistake included in #5 landed unchanged as a one-line extraction in e798d095da.
- Testing showed that pg_dump already omitted local deferrability changes on derived constraints, so Alvaro replaced the warning with an error in #7, abandoning the compatibility concern.
- Alvaro committed #7 with further ancestor lookup, conditional-update and test adjustments as 6f70d7ca1d, backpatched through PostgreSQL 11; the commit explicitly states that no reviews were offered.
- Alvaro confirmed completion with further adjustments in #8, leaving both fixes landed and no outstanding patch submission.