Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VODel-0007b9-I5 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Sep 2013 21:26:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VODel-0008DY-03 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Sep 2013 21:26:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VODej-0008DP-Fu for pgsql-hackers@postgresql.org; Mon, 23 Sep 2013 21:26:57 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VODea-0008GH-HG; Mon, 23 Sep 2013 21:26:57 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id 3CBFD59000F; Mon, 23 Sep 2013 21:26:46 +0000 (UTC) Message-ID: <5240B212.8040307@gmx.net> Date: Mon, 23 Sep 2013 17:26:42 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: MauMau CC: robertmhaas@gmail.com, Tatsuo Ishii , tgl@sss.pgh.pa.us, maksymb@fast.au.fujitsu.com, hlinnakangas@vmware.com, pgsql-hackers@postgresql.org Subject: Re: UTF8 national character data type support WIP patch and list of open issues. References: <20130920.085853.1628917054830864151.t-ishii@sraoss.co.jp> <20130922.072952.1977066018971837040.t-ishii@sraoss.co.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 9/23/13 2:53 AM, MauMau wrote: > Yes, I believe you are right. Regardless of whether we support multiple > encodings in one database or not, a single client encoding will be > sufficient for one session. When receiving the "Q" message, the whole > SQL text is converted from the client encoding to the database > encoding. This part needs no modification. During execution of the "Q" > message, NCHAR values are converted from the database encoding to the > NCHAR encoding. That assumes that the conversion client encoding -> server encoding -> NCHAR encoding is not lossy. I thought one main point of this exercise was the avoid these conversions and be able to go straight from client encoding into NCHAR. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers