Re: psql: immediately exit after an error?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: psql: immediately exit after an error?
Date: 2004-08-11 07:02:41
Message-ID: 200408110902.41439.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shanmugasundaram Doraisamy 2004-08-11 07:02:53 How to identify which query is running - reg.
Previous Message 马建霞 2004-08-11 06:42:06 ask for help about postgresql