Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement
Дата
Msg-id 30005.1582153341@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement  (Ildar Musin <ildar@adjust.com>)
Ответы Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement  (Amit Langote <amitlangote09@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Delaying/avoiding BTreeTupleGetNAtts() call within _bt_compare()
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement