pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Alban Hertroys <haramrae@gmail.com>
Cc: Alexander Law <exclusion@gmail.com>
Cc: Tatsuo Ishii <ishii@postgresql.org>
Cc: pgsql-general@postgresql.org
Cc: yi.codeplayer@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: [GENERAL] main log encoding problem
Date: Thu, 19 Jul 2012 20:37:50 +0800
Message-ID: <5007FF9E.7040006@ringerc.id.au> (raw)
In-Reply-To: <CAF-3MvPWk_xo=sUFvJqYrGrnh4G-rps67rn_-SoEMvCvygymug@mail.gmail.com>
References: <5007AB3D.3010501@gmail.com>
	<20120719.162426.57507866406108945.t-ishii@sraoss.co.jp>
	<5007C399.6000405@gmail.com>
	<20120719.172805.690055013563911415.t-ishii@sraoss.co.jp>
	<5007C802.3060007@gmail.com>
	<CAF-3MvPWk_xo=sUFvJqYrGrnh4G-rps67rn_-SoEMvCvygymug@mail.gmail.com>

On 07/19/2012 04:58 PM, Alban Hertroys wrote:
> On 19 July 2012 10:40, Alexander Law <exclusion@gmail.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




view thread (21+ messages)

Message-ID: <5007FF9E.7040006@ringerc.id.au>
Permalink:  ../5007FF9E.7040006@ringerc.id.au/
Also on:    postgresql.org/message-id/5007FF9E.7040006@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ringerc@ringerc.id.au, haramrae@gmail.com, exclusion@gmail.com, ishii@postgresql.org, pgsql-general@postgresql.org, yi.codeplayer@gmail.com
  Subject: Re: [GENERAL] main log encoding problem
  In-Reply-To: <5007FF9E.7040006@ringerc.id.au>
  References: <5007AB3D.3010501@gmail.com> <20120719.162426.57507866406108945.t-ishii@sraoss.co.jp> <5007C399.6000405@gmail.com> <20120719.172805.690055013563911415.t-ishii@sraoss.co.jp> <5007C802.3060007@gmail.com> <CAF-3MvPWk_xo=sUFvJqYrGrnh4G-rps67rn_-SoEMvCvygymug@mail.gmail.com> <5007FF9E.7040006@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox