Oct 2026

1 commit
Disallow NOT NULL NO INHERIT constraints on partitioned tables
27 Oct 2026David RowleymasterunreleasedREL_19_STABLE19rc2REL_18_STABLE18.7Also in: BUG #19770: CREATE TABLE (LIKE ...) PARTITION BY copies a NO INHERIT not-null constraint; NULLs then go into par (not this thread)
LLM analysis, 100% suremodified before commitlight changesfrom patchset #22 of 2 reviewers saw the final version

The commit matches #2's StoreRelNotNull() check in src/backend/catalog/heap.c and create_table_like regression tests, with diagnostic changes, reordered tests, and expanded repair guidance confirmed in #5. The from_discussion attribution in thread #254277 conflicts with this matching attached patchset: that thread supplied the bug report and has no patchsets, while this thread supplied the committed implementation.

  • Chao Lisaw the final versiontrailerChao tested #2 and requested consistent error text and SQLSTATE in #3, both adopted in the commit.
  • Nitin Motianisaw the final versiontrailerNitin reviewed #2, demonstrated the lost CHECK-only test coverage, and requested clearer advice for finding existing NULLs in #4, prompting the final test and commit-message edits.

Credits across 1 commit

Author
David Rowley1
Nitin Motiani1
Reviewer
Chao Li1
Nitin Motiani1
Reported by
Ann C1
Committer
David Rowley1