Re: [BUGS] Problem identifying constraints which should not be inherited - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] Problem identifying constraints which should not be inherited
Date
Msg-id 9795.1206631469@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] Problem identifying constraints which should not be inherited  (NikhilS <nikkhils@gmail.com>)
List pgsql-hackers
NikhilS <nikkhils@gmail.com> writes:
> ...
> * Add logic to mark inherited constraints in the children:
> This can be achieved by introducing a new bool "coninherited" attribute in
> pg_constraint. This will be set to true on only those check constraints that
> are added to children via the inheritance mechanism

It probably needs to be a count not a bool.  You can/should use the
handling of inherited attributes as a pattern to follow --- look at
attislocal and attinhcount.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Patch queue permenent URLs
Next
From: Simon Riggs
Date:
Subject: Re: Patch queue permenent URLs