Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement
Date
Msg-id 30005.1582153341@sss.pgh.pa.us
Whole thread Raw
In response to Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement  (Ildar Musin <ildar@adjust.com>)
Responses Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement
Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement
List pgsql-hackers
Ildar Musin <ildar@adjust.com> writes:
> My colleague Chris Travers discovered something that looks like a bug.
> Let's say we have a table with a constraint that is declared as NO INHERIT.
> ...
> Now when we want to make a copy of the table structure into a new table
> the `NO INHERIT` option is ignored.

Hm, I agree that's a bug, since the otherwise-pretty-detailed CREATE TABLE
LIKE documentation makes no mention of such a difference between original
and cloned constraint.

However, I'd be disinclined to back-patch, since it's barely possible
somebody out there is depending on the existing behavior.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Delaying/avoiding BTreeTupleGetNAtts() call within _bt_compare()
Next
From: "David G. Johnston"
Date:
Subject: Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement