model-writtenrun 1341 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- yanliang lei reported that PostgreSQL 18.1 silently accepted ADD CONSTRAINT NOT NULL with a new name while retaining the existing constraint name, misleading users about which constraint had been created #1 #8.
- Srinath Reddy Sadipiralla initially questioned the behavior, and Alvaro Herrera explained that compatible not-null constraints intentionally merge, while acknowledging that a different explicit name could justify an error and correcting the outdated column-property-only explanation #2 #3 #4 #5.
- Alvaro supplied the first name-mismatch check but reported that it broke pg_dump and pg_upgrade tests involving multiple inheritance, leaving the inheritance behavior unresolved #9.
- After an initial review, Srinath traced the failures to parent constraint names conflicting with existing child constraints, proposed checking names only when is_local is true, and reported that all tests passed with that adjustment #10 #11.
- Alvaro requested checks of multiple-parent and combined LIKE/inheritance cases; Srinath explained that CREATE TABLE uses a separate merging path and submitted the revised patch with the is_local guard #12 #14.
- Alvaro removed the experimental inherited-name changes, improved the error and explanatory comment, and added an explicit same-name no-op test in the final patch; he also announced that PostgreSQL 18 would need a separate ABI-history update #15.
- Alvaro committed the final patch unchanged as 492a69e140, including a PostgreSQL 18 backport, and confirmed the push in the thread's last message while awaiting the ABI-check failure #16.
- The subsequent commit a0f98b2755 completed the ABI-history follow-up announced in #15, documenting the added constraint-name parameter and the absence of PGXN callers.