model-writtenrun 2206 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- jian he reported that CREATE DOMAIN with two named NOT NULL clauses creates two pg_constraint entries and submitted a patch that retains only the first constraint #1.
- Alvaro Herrera argued that rejecting duplicate constraints would be more consistent and supplied an inline patch that detects them before creating anything #2.
- jian he accepted rejection as reasonable for this corner case, without submitting another attachment #3.
- The change landed using the inline rejection approach, with consolidated validation checks, an error location, and a regression test expecting failure; both jian he and Alvaro Herrera received co-author credit, and the fix was backpatched to PostgreSQL 18 8af310b331.
- Alvaro Herrera confirmed the commit and explained that accepting duplicates would require merging potentially different properties and discarding a requested constraint name; the fix was complete, although he left an observation about inconsistent error-code choices unresolved #4.