Re: BUG #1725: psql --command and PQexec do not work and fail silently - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1725: psql --command and PQexec do not work and fail silently
Date
Msg-id 5378.1119539591@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1725: psql --command and PQexec do not work and fail silently  ("Charlie Monkton" <charlie@hwhc.net>)
List pgsql-bugs
"Charlie Monkton" <charlie@hwhc.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

pgsql-bugs by date:

Previous
From: "Prasad Duggineni"
Date:
Subject: BUG #1726: Whenever i reboot my tables indexes is getting corrupted.
Next
From: "Robert Zahm"
Date:
Subject: BUG #1727: Corrupt Zip file?