Re: How to add constraints without validating data.

From: Iñigo Martinez Lasala <imartinez(at)vectorsf(dot)com>
To: Nilesh Govindarajan <lists(at)itech7(dot)com>
Cc: Amit jain <amitjain(at)synechron(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How to add constraints without validating data.
Date: 2010-05-27 16:19:49
Message-ID: 1274977189.19383.51.camel@deimos
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Constraints are special triggers, but triggers anyway.

So, If you truncate the table, create the contraint and then restore
with triggers disabled, it could be faster that create the contraint and
wait until it checks all table data... or not... :)

-----Original Message-----
From: Nilesh Govindarajan <lists(at)itech7(dot)com>
To: Iñigo Martinez Lasala <imartinez(at)vectorsf(dot)com>
Cc: Amit jain <amitjain(at)synechron(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] How to add constraints without validating data.
Date: Thu, 27 May 2010 21:45:25 +0530

How would disabling triggers help that ? He just wants to add
constraints without loss of data. I don't think he has any triggers.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nilesh Govindarajan 2010-05-27 16:32:33 Re: How to add constraints without validating data.
Previous Message Nilesh Govindarajan 2010-05-27 16:15:25 Re: How to add constraints without validating data.