Re: NOVALIDATE in postgresql?

From: Osvaldo Kussama <osvaldo(dot)kussama(at)gmail(dot)com>
To: sharmi_jo(at)yahoo(dot)com
Cc: General postgres mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: NOVALIDATE in postgresql?
Date: 2009-02-19 19:43:45
Message-ID: 690707f60902191143l4aece0k20782597c763e586@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2009/2/19 SHARMILA JOTHIRAJAH <sharmi_jo(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2009-02-19 19:49:46 Re: NOVALIDATE in postgresql?
Previous Message SHARMILA JOTHIRAJAH 2009-02-19 19:37:23 NOVALIDATE in postgresql?