Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C1AA1F6332A; Thu, 19 Jul 2012 05:40:57 -0300 (ADT) Received: from mail-lb0-f174.google.com ([209.85.217.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SrmI1-0001WM-Gy; Thu, 19 Jul 2012 08:40:56 +0000 Received: by lbbgm6 with SMTP id gm6so3280840lbb.19 for ; Thu, 19 Jul 2012 01:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=LkLaS18DUgJxqCMBCCvUME0l4HujJUyAfOsWiiMDMks=; b=e70N+CFNE9g+eG8nXIbw7qqzqECMbANvnjuDb1A4eU9P1IJuq0y9792DMJeGkSJER0 RHyVt1adZ1lKaH+9ZabZPjTLcGVmhzi91qbEkJrd/WfNO+QyfbBB83WkZHn1ZBWHayk+ UJD22aNl9fWkXLq6xiRf1bOFE+SMS9+rRHvQ4O/zgs2n8rGmBdk6Z3akEa3tVLSSCaWL 7nzOhImPvOurIs3C6uzs/nUpEviReMD7HQcrorXitwKXZ1fCD1jrMVySv/cgcszJ85IU GVWEfAXgqKk2oIuXa9LxhALhzq/wbqLTDGrrFEtTy0Nu3biFKskVW7UagPS55mAgMQXj Enlw== Received: by 10.112.36.97 with SMTP id p1mr718649lbj.37.1342687240399; Thu, 19 Jul 2012 01:40:40 -0700 (PDT) Received: from [1.0.0.7] ([94.138.26.200]) by mx.google.com with ESMTPS id s3sm344139lbk.11.2012.07.19.01.40.36 (version=SSLv3 cipher=OTHER); Thu, 19 Jul 2012 01:40:38 -0700 (PDT) Message-ID: <5007C802.3060007@gmail.com> Date: Thu, 19 Jul 2012 12:40:34 +0400 From: Alexander Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Tatsuo Ishii CC: pgsql-general@postgresql.org, ringerc@ringerc.id.au, yi.codeplayer@gmail.com, pgsql-bugs@postgresql.org Subject: Re: main log encoding problem 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> In-Reply-To: <20120719.172805.690055013563911415.t-ishii@sraoss.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201207/162 X-Sequence-Number: 33638 >> 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).