On Thu, Feb 18, 2010 at 02:20,  <pekka.jarvi...@gmail.com> wrote:
> $ psql -U foo -h 127.0.0.1 -f doesntwork.sql db
> Password for user foo:
> ERROR:  invalid byte sequence for encoding "UTF8": 0xe46976
> HINT:  This error can also happen if the byte sequence does not match the
> encoding expected by the server, which is controlled by "client_encoding".

> $ echo $?
> 0

You probably want to define ON_ERROR_STOP... see the man page about it.

psql -v 'ON_ERROR_STOP=on' ...

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply via email to