Re: psql: immediately exit after an error?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: psql: immediately exit after an error?
Дата
Msg-id 200408110902.41439.peter_e@gmx.net
обсуждение исходный текст
Ответ на psql: immediately exit after an error?  (David Garamond <lists@zara.6.isreserved.com>)
Список 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 по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Losing records when server hang
Следующее
От: Shanmugasundaram Doraisamy
Дата:
Сообщение: How to identify which query is running - reg.