Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOfB2-000426-A1 for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2013 02:50:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VOfB1-0004uV-Pn for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2013 02:50:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOfB0-0004uH-8Y for pgsql-hackers@postgresql.org; Wed, 25 Sep 2013 02:50:06 +0000 Received: from mout.gmx.net ([212.227.17.20]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VOfAw-00064M-7W for pgsql-hackers@postgresql.org; Wed, 25 Sep 2013 02:50:05 +0000 Received: from [10.0.0.5] ([67.165.8.132]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MPUlV-1VTM080R2f-004j8h for ; Wed, 25 Sep 2013 04:50:01 +0200 Message-ID: <1380077397.1440.25.camel@vanquo.pezone.net> Subject: Re: UTF8 national character data type support WIP patch and list of open issues. From: Peter Eisentraut 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 Date: Tue, 24 Sep 2013 22:49:57 -0400 In-Reply-To: <7DCFAE8265254605840917B35EEF09F1@maumau> References: <20130920.085853.1628917054830864151.t-ishii@sraoss.co.jp> <20130922.072952.1977066018971837040.t-ishii@sraoss.co.jp> <5240B212.8040307@gmx.net> <7DCFAE8265254605840917B35EEF09F1@maumau> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-4+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:RmKfwLFe6Rb95lUdCY07n9ySuHUrJoi3gVnVA6IxdjRFyRSzpg/ U4Aj2NPVH08lrihJ47YP3hA2BFwwGp1Iqehj0RHK0RF/iadYo4AlLrxMoj2AEl+ZZkT0sKC iTOiQwTtvdL4sr53wGjcCIYZ7At//yapZOoD7eFT5fY7qgjaDIcHO1Li//3xPfu1oCPj8Os NKaRFt6Q5YqEagAw01cIA== X-Pg-Spam-Score: -4.2 (----) 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 Tue, 2013-09-24 at 21:04 +0900, MauMau wrote: > "4. I guess some users really want to continue to use ShiftJIS or EUC_JP for > database encoding, and use NCHAR for a limited set of columns to store > international text in Unicode: > - to avoid code conversion between the server and the client for performance > - because ShiftJIS and EUC_JP require less amount of storage (2 bytes for > most Kanji) than UTF-8 (3 bytes) > This use case is described in chapter 6 of "Oracle Database Globalization > Support Guide"." But your proposal wouldn't address the first point, because data would have to go client -> server -> NCHAR. The second point is valid, but it's going to be an awful amount of work for that limited result. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers