Re: Check constraints on partition parents only? - Mailing list pgsql-hackers

From Nikhil Sontakke
Subject Re: Check constraints on partition parents only?
Date
Msg-id CABamaqP_b49vPUeJ4oSsB7-pT2N=qmhxLNFFF+k+V7zo21X3Nw@mail.gmail.com
Whole thread Raw
In response to Re: Check constraints on partition parents only?  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Check constraints on partition parents only?
List pgsql-hackers
 
> 8.4 had this change:
>
>         *
>           Force child tables to inherit CHECK constraints from parents
>           (Alex Hunsaker, Nikhil Sontakke, Tom)

> You're not the only one who occasionally bangs his head against it.


Sorry for the occasional head bumps :)
 
Yeah.  I think it's good that there's a barrier to blindly dropping a
constraint that may be important to have on children, but there should
be a way to override that.


Hmmm, but then it does open up the possibility of naive users shooting themselves in the foot. It can be easy to conjure up a parent-only-constraint that does not gel too well with its children. And that's precisely why this feature was added in the first place..

Regards,
Nikhils

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: How to use CreateFunctionStmt's RETURN TABLE?
Next
From: Aron
Date:
Subject: Re: vacuumlo patch