From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: kevin kempter <kevin@kevinkempterllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Deferred Constraints Issues
Date: Tue, 25 Mar 2008 13:27:00 -0700 (PDT)
Message-ID: <20080325132356.U1947@megazone.bigpanda.com> (raw)
In-Reply-To: <B9831791-E41D-4382-A6B4-35A28BA5B02E@kevinkempterllc.com>
References: <B9831791-E41D-4382-A6B4-35A28BA5B02E@kevinkempterllc.com>
On Tue, 25 Mar 2008, kevin kempter wrote:
> I've placed this sql in a script:
>
> psql my_db <<!
> begin;
> SET CONSTRAINTS ALL DEFERRED ;
> delete from account where 1 = 1;
> delete from cust where 1 = 1;
> delete from cust_type where 1 = 1;
> delete from cust_orders where 1 = 1;
> commit;
> !
>
> The tables have relationships, however I expect the 'SET CONSTRAINTS
> ALL DEFERRED' to defer constraint checks.
IIRC it's defined to only defer constraints created with DEFERRABLE and/or
INITIALLY DEFERRED. The default is NOT DEFERRABLE.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: sszabo@megazone.bigpanda.com, kevin@kevinkempterllc.com
Subject: Re: Deferred Constraints Issues
In-Reply-To: <20080325132356.U1947@megazone.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox