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

From Adrian Klaver
Subject Re: NOVALIDATE in postgresql?
Date
Msg-id 1473059680.167281235072986604.JavaMail.root@sz0030a.emeryville.ca.mail.comcast.net
Whole thread Raw
In response to NOVALIDATE in postgresql?  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Responses Re: NOVALIDATE in postgresql?
List pgsql-general
----- "SHARMILA JOTHIRAJAH" <sharmi_jo@yahoo.com> wrote:

> 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?
> Thanks
> Sharmila

From the Oracle manual:
ENABLE NOVALIDATE means the constraint is checked for new or modified rows, but existing data may violate the
constraint.

So you are looking for an incomplete constraint?

Adrian Klaver
aklaver@comcast.net
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Osvaldo Kussama
Date:
Subject: Re: NOVALIDATE in postgresql?
Next
From: Frank Featherlight
Date:
Subject: Re: Service not starting during install