BUG #5333: psql returns 0 on error

From: "" <pekka(dot)jarvinen(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5333: psql returns 0 on error
Date: 2010-02-18 09:20:46
Message-ID: 201002180920.o1I9Kkfd016235@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5333
Logged by:
Email address: pekka(dot)jarvinen(at)gmail(dot)com
PostgreSQL version: 8.4
Operating system: Ubuntu Karmic Koala
Description: psql returns 0 on error
Details:

$ 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

return value should be something else than 0.

doesntwork.sql just have contain something that doesn't work.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tim Bunce 2010-02-18 10:50:23 BUG #5334: Version 2.22 of Perl Safe module breaks UTF8 PostgreSQL 8.4
Previous Message janandith jayawardena 2010-02-17 19:21:04 Re: BUG #5327: postgresql gives checksum error when upgrading 8.2.6 binaries to 8.2.14 in windows.