Encoding of early PG messages

From: Shay Rojansky <roji(at)roji(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Encoding of early PG messages
Date: 2015-07-31 13:02:23
Message-ID: CADT4RqA1F1cKWONw_BvX8LEtcO5BioU8+Q+j+=NaK_ORTWQepw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers.

Developing Npgsql I've encountered the problem described in
http://www.postgresql.org/message-id/20081223212414.GD3894@merkur.hilbert.loc:
a German installation of PostgreSQL seems to respond to an incorrect
password with a non-UTF8 encoding of the error messages, even if the
startup message contains client_encoding=UTF8.

It seems that the aforementioned thread didn't lead to a fix (either to
respect client_encoding even for early messages, or to switch to ASCII
English errors for these messages). Am I missing something here or is this
the current situation in PG? Any plans for some sort of fix?

I can work around this by using "relaxed" decoding (i.e. not failing on
non-UTF8 characters) but this means that error messages are partially or
totally garbled...

Thanks,

Shay

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-07-31 13:04:28 Re: Doubt about AccessExclusiveLock in ALTER TABLE .. SET ( .. );
Previous Message Michael Paquier 2015-07-31 13:01:47 Re: Doubt about AccessExclusiveLock in ALTER TABLE .. SET ( .. );