model-writtenrun 2959 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera explained in #1 that dropping a constraint from ONLY a partitioned parent should leave its children constrained, so the prohibition incorrectly treated adding and dropping constraints as symmetrical.
- Alvaro attached a patch in #1 removing the CHECK and NOT NULL drop restrictions and updating regression tests, proposing no backpatch because the situation was unusual and no users had reported the inconsistency.
- Amit Langote revisited the original discussion, found no justification for the DROP restriction, and approved the patch for master in #2.
- Alvaro committed #1 as 4dea33ce76 with documentation, comment cleanup, and an additional check that child constraints remain, then confirmed the push in #3; the change was not backpatched.
- After the commit, jian he reported in #4 that CHECK and NOT NULL worked as intended but questioned why dropping a primary-key or unique constraint with ONLY still behaved like a recursive drop; the thread ends without a response or further patch.