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