model-writtenrun 7091 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera opened the thread with #1, correcting an ALTER CONSTRAINT error that described an SQL statement as a constraint type and adding regression tests.
- Nathan Bossart approved the patch in #2, and Alvaro announced it pushed in #3; the supplied commit 0f354e0805 contains the parser correction and foreign-key tests, with the other test cleanup omitted.
- Tom Lane objected in #4 that the parser cannot know the target constraint is a foreign key, prompting Alvaro's broader proposal in #5 to track explicitly supplied options and produce caller-specific errors for ALTER CONSTRAINT and constraint triggers.
- Alvaro refined the optional tracking API and added domain-constraint diagnostics in #6, while warning that the domain patch needed more investigation and test coverage.
- Amul Sul proposed testing the existing option bits through macros in #7; Alvaro initially favored the structure because he believed separate presence information was needed in #9.
- jian he identified tracking and domain-default issues in #8, and Alvaro concluded in #10 that explicitly specifying default domain characteristics should remain acceptable under the SQL standard.
- Amul supplied a complete macro-based alternative for the table and trigger work in #11, retaining Alvaro's tests and leaving out the domain patch.
- jian he requested consistent CREATE DOMAIN and ALTER DOMAIN behavior and documentation in #12, which Alvaro accepted in #13; Alvaro then endorsed Amul's general approach but requested naming and check-order changes before pausing work as lower priority in the thread's final message, #14.
- The constraint-trigger work subsequently landed as 87251e1149 from the later submission #594538 in thread #51649, superseding the earlier attribution to #11; it uses direct checks, accepts ENFORCED, and includes revised tests and documentation.
- The commit 87251e1149 declines backpatching because the diagnostic problem is cosmetic and obscure, while the broader table and domain work remains without a demonstrated landing in the supplied evidence.