Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID
Date
Msg-id 1322171400-sup-4407@alvh.no-ip.org
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID  (Thom Brown <thom@linux.com>)
Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
Excerpts from Alvaro Herrera's message of vie nov 11 00:32:33 -0300 2011:
> Excerpts from Thom Brown's message of jue nov 10 21:28:06 -0300 2011:
> >
> > On 10 November 2011 23:56, Thom Brown <thom@linux.com> wrote:
>
> > > The dump correctly contains:
> > >
> > > CREATE TABLE a (
> > >    num integer,
> > >    CONSTRAINT meow CHECK ((num < 20)) NOT VALID
> > > );
> >
> > Actually I mean incorrectly contains, because the constraint needs
> > adding after the data insertion, not as part of the create table
> > statement.
>
> Interesting, thanks -- I'll look into it.

I have just pushed a fix for this.  Thanks for the report and sorry for
the delay.

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


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Notes on implementing URI syntax for libpq
Next
From: Jan Urbański
Date:
Subject: Re: PL/Python SQL error code pass-through