Re: BUG #5661: The character encoding in logfile is confusing. - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: BUG #5661: The character encoding in logfile is confusing.
Date
Msg-id 1285148722.15691.19.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: BUG #5661: The character encoding in logfile is confusing.  (Craig Ringer <craig@postnewspapers.com.au>)
Responses Re: BUG #5661: The character encoding in logfile is confusing.
List pgsql-hackers
On ons, 2010-09-22 at 16:25 +0800, Craig Ringer wrote:
> A single log file should obviously be in a single encoding, it's the
> only sane way to do things. But which encoding is it in? And which
> *should* it be in?

We need to produce the log output in the server encoding, because that's
how we need to send it to the client.  If you have different databases
with different server encodings, you will get inconsistently encoded
output in the log file.

Conceivably, we could create a configuration option that specifies the
encoding for the log file, and strings a recoded from whatever gettext()
produces to the specified encoding.  initdb could initialize that option
suitably, so in most cases users won't have to do anything.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: snapshot generation broken
Next
From: Magnus Hagander
Date:
Subject: Re: snapshot generation broken