model-writtenrun 3475 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported incorrect query results when an inheritance parent had a NOT NULL constraint absent from its child, and proposed leaving parent notnullattnums empty while independently simplifying each child's restrictions #1.
- David Rowley worried that an undocumented empty notnullattnums could mislead future optimizations, so his revision preserved that metadata and instead disabled parent-level simplification for inheritance RTEs while retaining child-level checks #2.
- Tom Lane asked whether connoinherit should influence the decision #3, and David Rowley explained that each relation's pg_attribute.attnotnull already supplied the needed information without consulting pg_constraint #4.
- Richard Guo argued that marking the inheritance parent non-nullable was itself misleading because its children could supply NULLs #5; David Rowley consequently combined both safeguards and explicitly documented the unpopulated metadata field #6.
- Richard Guo restored parent-level optimization for partitioned tables, whose children must preserve the parent's NOT NULL constraints, and updated the child-processing comments #7.
- David Rowley accepted the partitioned-table exception after considering partition and CHECK constraints, refined comments to describe the caller's contract, and committed the final attachment with light edits as 3af7040985, announcing completion in #8.
- The final message supplied Richard Guo's inline correction for a newly introduced comment typo #9, which subsequently landed as b9ecefecc7, leaving both the functional fix and the reported follow-up resolved.