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

From Peter Eisentraut
Subject Re: psql: immediately exit after an error?
Date
Msg-id 200408110902.41439.peter_e@gmx.net
Whole thread Raw
In response to psql: immediately exit after an error?  (David Garamond <lists@zara.6.isreserved.com>)
List pgsql-general
David Garamond wrote:
> Can psql be told to exit immediately after an error (especially when
> doing commands from a file, -f)? This is the default behaviour of the
> mysql client, except when we give it -f option ("force").

\set ON_ERROR_STOP on

Look into the psql man page for additional semantic details.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Losing records when server hang
Next
From: Shanmugasundaram Doraisamy
Date:
Subject: How to identify which query is running - reg.