Re: Problem identifying constraints which should not be inherited - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Problem identifying constraints which should not be inherited
Date
Msg-id 1430.1205938402@sss.pgh.pa.us
Whole thread Raw
In response to Re: Problem identifying constraints which should not be inherited  (NikhilS <nikkhils@gmail.com>)
Responses Re: Problem identifying constraints which should not be inherited
List pgsql-bugs
NikhilS <nikkhils@gmail.com> writes:
> On Fri, Mar 7, 2008 at 6:37 AM, Bruce Momjian <bruce@momjian.us> wrote:
>> Added to TODO:
>> o Require all CHECK constraints to be inherited

> PFA, a small patch attached which should fix this.

If it's a small patch, it's wrong by definition.  AFAICS there is no way
to fix this correctly that doesn't involve catalog changes.  The point
of the TODO is that you have to enforce that the inherited constraint
sticks around, eg can't be dropped on a child table while it's still
present on the parent.  There are implications for pg_dump too.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #4044: Incorrect RegExp substring Output
Next
From: "Rui Martins"
Date:
Subject: Re: BUG #4044: Incorrect RegExp substring Output