Re: FOREIGN KEY: difference between NOT DEFERRABLE and - Mailing list pgsql-general

From Stephan Szabo
Subject Re: FOREIGN KEY: difference between NOT DEFERRABLE and
Date
Msg-id Pine.BSF.4.21.0109041047001.82280-100000@megazone23.bigpanda.com
Whole thread Raw
In response to FOREIGN KEY: difference between NOT DEFERRABLE and INITIALLY IMMEDIATE  (Gabriel Fernandez <gabi@unica.edu>)
List pgsql-general
On Tue, 4 Sep 2001, Gabriel Fernandez wrote:

> Hi,
>
> What's the difference between NOT DEFERRABLE and INITIALLY IMMEDIATE for
> a FOREIGN KEY specification ?
>
> It seems they are both defining the same: the moment the constraint will
> be checked: the instant the statement is processed or the end of
> transaction.

Well, at start.  With initially immediate you can use SET CONSTRAINTS to
change it on the fly back and forth from deferrable to not.  NOT
DEFERRABLE means you cannot do so.



pgsql-general by date:

Previous
From: Tony Grant
Date:
Subject: Re: [WAY OT] Re: PL/java?
Next
From: Jan Wieck
Date:
Subject: Re: nested SQL with SPI