Re: Review: Non-inheritable check constraints - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Review: Non-inheritable check constraints
Date
Msg-id 1324069097-sup-3090@alvh.no-ip.org
Whole thread Raw
In response to Re: Review: Non-inheritable check constraints  (Alex Hunsaker <badalex@gmail.com>)
Responses Re: Review: Non-inheritable check constraints
List pgsql-hackers
Excerpts from Alex Hunsaker's message of vie dic 16 17:50:12 -0300 2011:
>
> On Fri, Dec 16, 2011 at 12:06, Alvaro Herrera
> <alvherre@commandprompt.com> wrote:
>
> > Yeah.  Nikhil, Alex, this is the merged patch.  Have a look that it
> > still works for you (particularly the pg_dump bits) and I'll commit it.
> > I adjusted the regression test a bit too.
>
> Other than the version checks seem to be off by one looks fine. I
> assume I/we missed that in the original patch. I also adjusted the
> version check in describe.c to be consistent with the other version
> checks in that file (>= 90200 instead of > 90100).

Uhm ... you're right that convalidated is present in 9.1 but AFAIR it's
only used for FKs, not CHECKs which is what this code path is about (for
CHECKs I only introduced it in 9.2, which is the patch that caused the
merge conflict in the first place).  FKs use a completely separate path
in pg_dump which doesn't need the separate convalidated check.  So I
don't think we really need to add a separate branch for 9.1 here, but it
certainly needs a comment improvement.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Alex Hunsaker
Date:
Subject: Re: Review: Non-inheritable check constraints
Next
From: Alex Hunsaker
Date:
Subject: Re: Review: Non-inheritable check constraints