Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMQTy-0000tx-VN for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Sep 2013 22:44:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VMQTy-0005mi-FL for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Sep 2013 22:44:26 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMQTw-0005mY-OS for pgsql-hackers@postgresql.org; Wed, 18 Sep 2013 22:44:24 +0000 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VMQTq-0002sn-99 for pgsql-hackers@postgresql.org; Wed, 18 Sep 2013 22:44:23 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc17so7621170pbc.32 for ; Wed, 18 Sep 2013 15:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-type:content-transfer-encoding; bh=rjSyuVIHfKgDsPXY34I1JI5NrMQhrFsYyOEl8kUfA+g=; b=NQl4Tg81ulZ4SlL4k3Tv2aODe2pBYo/baDl3yq/wBJP7LbRGrN/NKz77vvdWdv5c+9 E/yJxAzy/8WKogrRARrk8sYP1lrtR7muXflpJCLlIxT6DeiTpetqFzUeL4Cvf0DXIqYY SkWI5nTo9QfVSaT20WW1b5D3E7ItjwUesnifnbsjKtv6cxYCBQzscMoquJx9moV35Nw0 nQvXuLivIIGzX0i+VSPpU0qof2f5M/kETmcOTN+2HqctuETPVMxs/c1tcihdd9Djg5ee TBYc9NiLAZJgKosn5EqJja0cgWlRSq+Dltsr+Q+yzX9VW4n0V2cbw2gOtqZ6OqQcHOpj 9pZQ== X-Received: by 10.68.134.133 with SMTP id pk5mr43570369pbb.89.1379544256637; Wed, 18 Sep 2013 15:44:16 -0700 (PDT) Received: from maumau (p6019-ipbfp211sizuokaden.shizuoka.ocn.ne.jp. [114.170.213.19]) by mx.google.com with ESMTPSA id tg7sm4946047pbc.36.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Sep 2013 15:44:15 -0700 (PDT) Message-ID: <1191A5384BD641C68D288AF210BEFDA8@maumau> From: "MauMau" To: "Tom Lane" , "Robert Haas" Cc: "Boguk, Maksym" , "Heikki Linnakangas" , References: <522594E8.2050106@vmware.com> <904.1378304922@sss.pgh.pa.us> <592.1379524680@sss.pgh.pa.us> In-Reply-To: <592.1379524680@sss.pgh.pa.us> Subject: Re: UTF8 national character data type support WIP patch and list of open issues. Date: Thu, 19 Sep 2013 07:46:37 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463 X-Pg-Spam-Score: 0.6 (/) 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 From: "Tom Lane" > Another point to keep in mind is that UTF16 is not really any easier > to deal with than UTF8, unless you write code that fails to support > characters outside the basic multilingual plane. Which is a restriction > I don't believe we'd accept. But without that restriction, you're still > forced to deal with variable-width characters; and there's nothing very > nice about the way that's done in UTF16. So on the whole I think it > makes more sense to use UTF8 for this. I feel so. I guess why Windows, Java, and Oracle chose UTF-16 is ... it was UCS-2 only with BMP when they chose it. So character handling was easier and faster thanks to fixed-width encoding. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers