model-writtenrun 2901 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- A documentation report proposed making CONSTRAINT explicit in ALTER DOMAIN ADD syntax #1; Erik Wienhold and David G. Johnston explained that the keyword belongs to an optional named-constraint clause, so making it mandatory would be incorrect #2 #3.
- Tom Lane initially proposed copying the constraint syntax from CREATE DOMAIN onto the ALTER DOMAIN page #4, then tested the commands and discovered that ALTER DOMAIN rejects NULL, leading him to propose an explicit definition containing only NOT NULL and CHECK and removal of the claimed syntax equivalence #5.
- David G. Johnston agreed with the documentation-only fix because DROP NOT NULL already supplies the desired behavior, while raising broader questions about NULL syntax and standards claims that the eventual patch did not address #6.
- Peter Eisentraut pointed to earlier discussion whose associated NOT NULL constraint feature had been reverted and recommended revisiting its subtle syntax and documentation considerations #7.
- Bruce Momjian supplied the sole attached patch, implementing the explicit syntax and removing the CREATE DOMAIN equivalence claim, and proposed backpatching through PostgreSQL 12 #8.
- Bruce committed that patch unchanged apart from adapting to existing reference markup as cd64941f6f and confirmed application through PostgreSQL 12 in the final message, completing the focused documentation fix #9.