pgsql: Return proper exit code (3) from psql when ON_ERROR_STOP=on and

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Return proper exit code (3) from psql when ON_ERROR_STOP=on and
Date: 2010-03-08 23:03:00
Message-ID: 20100308230300.C747D7541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Return proper exit code (3) from psql when ON_ERROR_STOP=on and
--single-transaction are both used and the failure happens in commit,
e.g. failed deferred trigger. Also properly free BEGIN/COMMIT result
structures from --single-transaction.

Per report from Dominic Bevacqua

Modified Files:
--------------
pgsql/src/bin/psql:
command.c (r1.216 -> r1.217)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/command.c?r1=1.216&r2=1.217)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2010-03-09 01:09:54 pgsql: Return proper exit code (3) from psql when ON_ERROR_STOP=on and
Previous Message User Gleu 2010-03-08 17:27:06 pgsnap - pgsnap: Fix the "clustered tables" report as it didn't work on