Re: BUG #1725: psql --command and PQexec do not work and fail silently

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Charlie Monkton" <charlie(at)hwhc(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1725: psql --command and PQexec do not work and fail silently
Date: 2005-06-23 15:13:11
Message-ID: 5378.1119539591@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Charlie Monkton" <charlie(at)hwhc(dot)net> writes:
> Executing the following SQL via the psql -c option (or PQexec does not
> work:

> psql -c "delete from test;insert into test values ( 1 );insert into
> test_ref values ( 1 );"

In 7.4 and before, test's ON DELETE trigger won't be fired until the end
of that command string, so it deletes both the old and new rows in
test_ref. We changed the timing of trigger firing in 8.0, and now that
example works as you expect.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Zahm 2005-06-23 18:28:10 BUG #1727: Corrupt Zip file?
Previous Message Tom Lane 2005-06-23 00:40:30 Re: BUG #1726: Whenever i reboot my tables indexes is getting corrupted.