Re: ERROR: check constraint - PostgreSQL 9.2

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: ERROR: check constraint - PostgreSQL 9.2
Дата
Msg-id E13239AF-DB2F-4656-93C6-DE352C4367D6@thebuild.com
обсуждение исходный текст
Ответ на Re: ERROR: check constraint - PostgreSQL 9.2  (Christophe Pettus <xof@thebuild.com>)
Список pgsql-general
On Jan 24, 2016, at 8:17 PM, Christophe Pettus <xof@thebuild.com> wrote:
> 2. Use the NOT VALID option on ALTER TABLE ... ADD constraint, which allows the addition of a constraint without
actuallychecking its validity. 

And note that you might miss some potential planner optimizations this way, as the planner will not assume the
constraintholds true unless you remove the NOT VALID condition from it with VALIDATE CONSTRAINT. 

--
-- Christophe Pettus
   xof@thebuild.com



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

Предыдущее
От: Christophe Pettus
Дата:
Сообщение: Re: ERROR: check constraint - PostgreSQL 9.2
Следующее
От: "Regina Obe"
Дата:
Сообщение: Re: A motion