Skip site navigation (1) Skip section navigation (2)

Re: delete cascade question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bradley Russell" <bradley(dot)russell(at)npcinternational(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: delete cascade question
Date: 2006-12-11 16:30:44
Message-ID: 13123.1165854644@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"Bradley Russell" <bradley(dot)russell(at)npcinternational(dot)com> writes:
> I'm using libpq and the PQexec function.  I am trying to figure out if I
> execute a delete query on a table that has dependent tables with on
> delete cascade set. Will the result return before or after the cascade
> is finished?

After, unless you have the constraint set to "deferred", in which case
the cascade happens at COMMIT.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Philippe SalamaDate: 2006-12-11 17:24:36
Subject: Re: delete cascade question
Previous:From: Bradley RussellDate: 2006-12-11 16:26:49
Subject: delete cascade question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group