model-writtenrun 8770 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ildar Musin reported Chris Travers's discovery that CREATE TABLE LIKE drops a check constraint's NO INHERIT property and supplied a one-line fix in #1.
- Tom Lane agreed that the undocumented difference was a bug but opposed backpatching because applications might depend on the existing behavior in #2.
- David G. Johnston questioned whether copying NO INHERIT was necessary because CREATE TABLE LIKE creates no inheritance relationship in #3.
- Amit Langote tested Ildar's fix and posted a revision adding regression coverage for ordinary copies and partitioned-table rejection in #4; he subsequently clarified that only CHECK constraints support NO INHERIT in #5.
- Tom Lane committed #4 with cosmetic code changes and regression-test polishing as cacef17223, retaining the decision against backpatching; his final announcement in #6 closed the thread with the fix landed.