"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