pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Law <exclusion@gmail.com>
To: Tatsuo Ishii <ishii@postgresql.org>
Cc: pgsql-general@postgresql.org
Cc: ringerc@ringerc.id.au
Cc: yi.codeplayer@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: main log encoding problem
Date: Thu, 19 Jul 2012 12:21:45 +0400
Message-ID: <5007C399.6000405@gmail.com> (raw)
In-Reply-To: <20120719.162426.57507866406108945.t-ishii@sraoss.co.jp>
References: <5006D340.4000808@gmail.com>
	<20120719.081626.240539691760651172.t-ishii@sraoss.co.jp>
	<5007AB3D.3010501@gmail.com>
	<20120719.162426.57507866406108945.t-ishii@sraoss.co.jp>


>> And regarding mule internal encoding - reading about Mule
>> http://www.emacswiki.org/emacs/UnicodeEncoding I found:
>> /In future (probably Emacs 22), Mule will use an internal encoding
>> which is a UTF-8 encoding of a superset of Unicode. /
>> So I still see UTF-8 as a common denominator for all the encodings.
>> I am not aware of any characters absent in Unicode. Can you please
>> provide some examples of these that can results in lossy conversion?
> You can google by "encoding "EUC_JP" has no equivalent in "UTF8"" or
> some such to find such an example. In this case PostgreSQL just throw
> an error. For frontend/backend encoding conversion this is fine. But
> what should we do for logs? Apparently we cannot throw an error here.
>
> "Unification" is another problem. Some kanji characters of CJK are
> "unified" in Unicode. The idea of unification is, if kanji A in China,
> B in Japan, C in Korea looks "similar" unify ABC to D. This is a great
> space saving:-) The price of this is inablity of
> round-trip-conversion. You can convert A, B or C to D, but you cannot
> convert D to A/B/C.
>
> BTW, I'm not stick with mule-internal encoding. What we need here is a
> "super" encoding which could include any existing encodings without
> information loss. For this purpose, I think we can even invent a new
> encoding(maybe something like very first prposal of ISO/IEC
> 10646?). However, using UTF-8 for this purpose seems to be just a
> disaster to me.
>
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.




view thread (21+ messages)  latest in thread

Message-ID: <5007C399.6000405@gmail.com>
Permalink:  ../5007C399.6000405@gmail.com/
Also on:    postgresql.org/message-id/5007C399.6000405@gmail.com

 · 

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: exclusion@gmail.com, ishii@postgresql.org, pgsql-general@postgresql.org, ringerc@ringerc.id.au, yi.codeplayer@gmail.com
  Subject: Re: main log encoding problem
  In-Reply-To: <5007C399.6000405@gmail.com>
  References: <5006D340.4000808@gmail.com> <20120719.081626.240539691760651172.t-ishii@sraoss.co.jp> <5007AB3D.3010501@gmail.com> <20120719.162426.57507866406108945.t-ishii@sraoss.co.jp> <5007C399.6000405@gmail.com>

* 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