model-writtenrun 2791 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Erki Eessaar reported that querying pg_get_constraintdef() across pg_constraint failed with invalid constraint type "n" after upgrading to PostgreSQL 17, then supplied a reproducer involving a domain with NOT NULL and CHECK constraints #1 #2.
- Magnus Hagander isolated the trigger to domain NOT NULL constraints and identified an omission in the catalog-not-null-constraints work #3.
- Alvaro Herrera explained that PostgreSQL 17 had retained domain NOT NULL catalog entries while accidentally reverting their ruleutils.c support, and supplied a patch restoring the domain handling already present in PostgreSQL 18 #4.
- Magnus Hagander tested the patch successfully and searched for other affected constraint-handling sites, while leaving open whether further omissions existed #5.
- Alvaro Herrera committed the unchanged implementation from #4 with additional regression tests for named domain NOT NULL constraints and pg_get_constraintdef() 6e793582bc.
- The thread closed after the commit with Alvaro Herrera thanking the tester and reporter and saying his further inspection had found no additional omissions; no further patch was pending #6.