Re: REFRENTIAL INTEGRITY CHECKING

From: Stephan Szabo <acroyear_07030(at)yahoo(dot)com>
To: Sudheer Palaparambil <p_sudheers(at)rediffmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: REFRENTIAL INTEGRITY CHECKING
Date: 2001-07-16 18:51:42
Message-ID: 20010716185143.15377.qmail@web14608.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


--- Sudheer Palaparambil <p_sudheers(at)rediffmail(dot)com>
wrote:
> Hi,
>
> How do we avoid referential integrity (FOREIGN
> KEY) checking till commit. My pgsql server
> is checking it as soon as I am issueing an INSERT
> command. Pls help.

When you define the constraint, set it as INITIALLY
DEFERRED (or if you only sometimes want it to defer,
set it as DEFERRABLE and use SET CONSTRAINTS to change
the mode)
However, there are some problems with the deferred ri
right now if you modify the same key more than once in
a transaction -- I'm hoping to get a chance to fix
that for 7.2. For now, you have to be careful.

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Srinivasa R Chava 2001-07-16 19:03:05 how to connect remote database
Previous Message Thalis A. Kalfigopoulos 2001-07-16 18:48:16 Re: REFRENTIAL INTEGRITY CHECKING