Re: NOVALIDATE in postgresql? - Mailing list pgsql-general

From Osvaldo Kussama
Subject Re: NOVALIDATE in postgresql?
Date
Msg-id 690707f60902191143l4aece0k20782597c763e586@mail.gmail.com
Whole thread Raw
In response to NOVALIDATE in postgresql?  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
List pgsql-general
2009/2/19 SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>:
> Hi
> In Oracle I can use the NOVALIDATE for constraints... like this
> ALTER TABLE employee ADD
> CONSTRAINT emp_ck
>  CHECK (married IN ('Y','N')) NO VALIDATE;
>
> When the table is already populated this will be faster. Can you do the same in Postgresql?
>


From manual:
"Adding a CHECK or NOT NULL constraint requires scanning the table to
verify that existing rows meet the constraint."
http://www.postgresql.org/docs/current/interactive/sql-altertable.html

Osvaldo

pgsql-general by date:

Previous
From: SHARMILA JOTHIRAJAH
Date:
Subject: NOVALIDATE in postgresql?
Next
From: Adrian Klaver
Date:
Subject: Re: NOVALIDATE in postgresql?