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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

  From Date Subject
Next Message Philippe Salama 2006-12-11 17:24:36 Re: delete cascade question
Previous Message Bradley Russell 2006-12-11 16:26:49 delete cascade question