model-writtenrun 4417 - 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 an announcement that NOT NULL constraints now have pg_constraint rows with contype='n', explaining that manufactured CHECK constraints had proved unsuitable because of distinguishability and performance concerns #1.
- The announced implementation propagates constraints through inheritance, partitioning and CREATE TABLE LIKE, matching inherited constraints by column rather than name; system catalogs, NOT VALID and DEFERRABLE support were left out #1.
- David Rowley reported that Valgrind detected a potentially uninitialized process_notnull_constraints variable in transformTableLikeClause() #2.
- Rowley attached a one-line fix initializing that variable to false, with no subsequent review or revision shown in the thread #2.
- The fix from #2 landed unchanged shortly afterward as 4c8a1b4769, completing the only attached patchset.