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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Amit Langote <amitlangote09(at)gmail(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Ildar Musin <ildar(at)adjust(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement
Date: 2020-03-10 18:55:20
Message-ID: 1990.1583866520@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Amit Langote <amitlangote09(at)gmail(dot)com> writes:
> On Thu, Feb 20, 2020 at 8:20 AM David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
>> Not sure I agree with the premise that it is not supposed to be copied; is there some other object type the allows NO INHERIT that isn't copied when CREATE TABLE LIKE is used and check constraints are the odd ones out?

> Syntax currently allows only CHECK constraints to be marked NO INHERIT.

Hearing no further comments, pushed, with a bit of cosmetic polishing.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2020-03-10 19:01:43 Re: backend type in log_line_prefix?
Previous Message Julien Rouhaud 2020-03-10 18:52:22 Re: shared-memory based stats collector