Re: psql: immediately exit after an error?

Поиск
Список
Период
Сортировка
От David Garamond
Тема Re: psql: immediately exit after an error?
Дата
Msg-id 411A2F6C.9090409@zara.6.isreserved.com
обсуждение исходный текст
Ответ на psql: immediately exit after an error?  (David Garamond <lists@zara.6.isreserved.com>)
Ответы Re: psql: immediately exit after an error?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Peter Eisentraut 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.

Thanks! Just what I was looking for.

Btw, may I suggest this line be added by pg_dump/pg_dumpall? Or even the
default being changed to on when -f is given? Or maybe add a command
line option for this?

--
dave

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Slony setup help needed
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Replication options?