model-writtenrun 6846 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nitin Motiani proposed rejecting NO INHERIT not-null constraints copied by CREATE TABLE LIKE into partitioned tables, because partitions could otherwise accept NULLs while the planner trusted the parent's not-null constraint; his parser-level fix included separate constraint tests and inheritance checks #1.
- David Rowley moved enforcement into StoreRelNotNull() to protect all callers, simplified the tests, and added guidance for identifying and repairing existing invalid constraints; he raised the inconvenience of mandatory not-null copying but deferred alternatives that would ignore or change the inherited flag #2.
- Chao Li tested the revised patch and requested that its error message and SQLSTATE match those used for a directly declared NO INHERIT not-null constraint #3.
- Nitin Motiani supported the centralized check, explained that planner assumptions could hide existing NULLs during cleanup, and demonstrated that the revised tests no longer independently exercised CHECK-constraint rejection; he also opposed silently changing copied constraint semantics #4.
- David Rowley committed the revised patch as 700b422af7, incorporating Chao's diagnostic changes, reordering tests to cover both rejection paths, and expanding repair guidance; his final message confirmed the push, completing the proposed fix while leaving existing invalid constraints for users to repair #5.