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

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 (view raw or flat)
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

pgsql-bugs by date

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

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