Re: psql: immediately exit after an error?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: psql: immediately exit after an error?
Date: 2004-08-11 16:28:51
Message-ID: 9455.1092241731@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com> writes:
> Peter Eisentraut wrote:
>> \set ON_ERROR_STOP on

> Btw, may I suggest this line be added by pg_dump/pg_dumpall?

No. The fact that pg_dump scripts keep going is a feature, not a bug.
We recently changed pg_restore to match that behavior, in fact, because
people were constantly having trouble when it didn't.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eugene Barlow 2004-08-11 17:41:28 boolean function return values
Previous Message Bruno Wolff III 2004-08-11 16:27:01 Re: How to know which queries are to be optimised?