Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID
Дата
Msg-id 1320982284-sup-1138@alvh.no-ip.org
обсуждение исходный текст
Ответ на 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  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
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.

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: type privileges and default privileges
Следующее
От: Tom Lane
Дата:
Сообщение: Re: type privileges and default privileges