From: | Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> |
---|---|
To: | Alban Hertroys <haramrae(at)gmail(dot)com> |
Cc: | Alexander Law <exclusion(at)gmail(dot)com>, Tatsuo Ishii <ishii(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org, yi(dot)codeplayer(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: [GENERAL] main log encoding problem |
Date: | 2012-07-19 12:37:50 |
Message-ID: | 5007FF9E.7040006@ringerc.id.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general pgsql-hackers |
On 07/19/2012 04:58 PM, Alban Hertroys wrote:
> On 19 July 2012 10:40, Alexander Law <exclusion(at)gmail(dot)com> wrote:
>>>> Ok, maybe the time of real universal encoding has not yet come. Then
>>>> we maybe just should add a new parameter "log_encoding" (UTF-8 by
>>>> default) to postgresql.conf. And to use this encoding consistently
>>>> within logging_collector.
>>>> If this encoding is not available then fall back to 7-bit ASCII.
>>> What do you mean by "not available"?
>> Sorry, it was inaccurate phrase. I mean "if the conversion to this encoding
>> is not avaliable". For example, when we have database in EUC_JP and
>> log_encoding set to Latin1. I think that we can even fall back to UTF-8 as
>> we can convert all encodings to it (with some exceptions that you noticed).
> I like Craig's idea of adding the client encoding to the log lines.
Nonono! Log *file* *names* when one-file-per-database is in use.
Encoding as a log line prefix is a terrible idea for all sorts of reasons.
--
Craig Ringer
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-07-19 14:33:07 | Re: BUG #6743: BETWEEN operator does not work for char(1) |
Previous Message | Craig Ringer | 2012-07-19 12:31:46 | Re: main log encoding problem |
From | Date | Subject | |
---|---|---|---|
Next Message | James W. Wilson | 2012-07-19 12:53:35 | Re: problem with dblink and "drop owned by" |
Previous Message | Craig Ringer | 2012-07-19 12:31:46 | Re: main log encoding problem |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2012-07-19 12:56:51 | Re: [PERFORM] DELETE vs TRUNCATE explanation |
Previous Message | Craig Ringer | 2012-07-19 12:31:46 | Re: main log encoding problem |