2009/2/19 SHARMILA JOTHIRAJAH <sharmi_jo@xxxxxxxxx>: > 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general