Re: psql: immediately exit after an error? - Mailing list pgsql-general

From Tom Lane
Subject Re: psql: immediately exit after an error?
Date
Msg-id 9455.1092241731@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql: immediately exit after an error?  (David Garamond <lists@zara.6.isreserved.com>)
List pgsql-general
David Garamond <lists@zara.6.isreserved.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

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: the behaviour of timestamp on postgres.
Next
From: Tom Lane
Date:
Subject: Re: 7.4.3 server panic