model-writtenrun 2815 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera reported that attaching a table with a local NO INHERIT CHECK constraint succeeds despite the documentation, and proposed deleting the blanket prohibition in #1 and #2.
- Amit Langote demonstrated that attachment does fail when the parent has a matching CHECK constraint in #3; Alvaro proposed a shorter, more precise qualification and separately suggested relaxing the restriction for leaf partitions in #4.
- Amit approved the documentation wording and submitted a separate implementation covering ATTACH PARTITION and CREATE TABLE PARTITION OF in #5, reasoning that leaf partitions have no descendants to inherit constraints.
- Alvaro committed the deletion from #2 with the revised qualification as 477830c1cb, backpatched the documentation correction, and explained in #6 that any subsequent behavioral change should update master separately.
- Amit demonstrated the corresponding CREATE TABLE PARTITION OF restriction in #7, and Alvaro accepted covering that path in #8; Amit then rebased and expanded the proposal to NOT NULL constraints in #9, while raising unresolved constraint-merging behavior.
- Alvaro explained the need to reject incompatible NOT NULL constraints in #10, and Amit removed that portion in #11, retaining a CHECK-only patch but holding off on committing until the behavioral consistency questions were resolved.
- Alvaro reconsidered the relaxation in #12 because it appeared inconsistent and potentially unnecessary if constraints could later switch their inheritance flag; Amit agreed to leave it alone in #13 and asked about inherited NOT NULL constraint names.
- Alvaro explained in #14 that NOT NULL constraints match by column and deliberately preserve user-selected names for dump/restore, and confirmed keeping the existing restriction; Amit agreed in #15, leaving the documentation correction landed and the behavioral patches abandoned.