Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VNB5h-0007cw-GC for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Sep 2013 00:30:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VNB5g-0005te-Vn for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Sep 2013 00:30:29 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VNB5f-0005tV-9e for pgsql-hackers@postgresql.org; Sat, 21 Sep 2013 00:30:27 +0000 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VNB5b-0006VF-IR for pgsql-hackers@postgresql.org; Sat, 21 Sep 2013 00:30:26 +0000 Received: by mail-pa0-f46.google.com with SMTP id fa1so1322366pad.5 for ; Fri, 20 Sep 2013 17:30:22 -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=nAm9WpxXb0OUkjRi2iUHN1Yi58AqF+jwzmTvOK+hess=; b=TTkqDrtR8z8clpU3dT2w4q/AIKsKE35gQk/bxiu/cS4DNlazvC9SVjB9Z5S92g+MQE 2dvK5cQ46+8EkvnbcxzkOINlD2cx+QlcpqhAnZtZqTcDBZI/W6U3xIGg00GMapXmHI6J C7tid/URRBFfTeJ6SRCKP6yKfDZJabPDFoDzIVNw53Fst4Cvk2SOEsOEOYM2m4LQomzt ye2AzbAnChqhd3k74OwSNzwHAHu5TdZwmAK7Y6u45DzRyT5Y4I1p8BaewBlLLsQ+04mx VSGvCG9mK2NERukrmuYDmxzHxXy9XPTg8FZcHz/QqEYS3kN5SrDzAdP+XNrkS48BGWOG wamg== X-Received: by 10.68.244.2 with SMTP id xc2mr10854137pbc.58.1379723422283; Fri, 20 Sep 2013 17:30:22 -0700 (PDT) Received: from maumau (p6019-ipbfp211sizuokaden.shizuoka.ocn.ne.jp. [114.170.213.19]) by mx.google.com with ESMTPSA id tz3sm18376418pbc.20.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Sep 2013 17:30:21 -0700 (PDT) Message-ID: From: "MauMau" To: "Robert Haas" Cc: "Tom Lane" , "Boguk, Maksym" , "Heikki Linnakangas" , References: <522594E8.2050106@vmware.com><904.1378304922@sss.pgh.pa.us><37B76474BB3149FD841373E12E355851@maumau> In-Reply-To: Subject: Re: UTF8 national character data type support WIP patch and list of open issues. Date: Sat, 21 Sep 2013 09:32:27 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; 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: -1.3 (-) 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: "Robert Haas" > I don't think that you'll be able to > get consensus around that path on this mailing list. > I agree that the fact we have both varchar and text feels like a wart. Is that right? I don't feel varchar/text case is a wart. I think text was introduced for a positive reason to ease migration from other DBMSs. The manual says: http://www.postgresql.org/docs/current/static/datatype-character.html "Although the type text is not in the SQL standard, several other SQL database management systems have it as well." And isn't EnterpriseDB doing similar things for Oracle compatibility, although I'm not sure about the details? Could you share your idea why we won't get consensus? >> I understand your feeling. The concern about incompatibility can be >> eliminated by thinking the following way. How about this? >> >> - NCHAR can be used with any database encoding. >> >> - At first, NCHAR is exactly the same as CHAR. That is, >> "implementation-defined character set" described in the SQL standard is >> the >> database character set. >> >> - In the future, the character set for NCHAR can be selected at database >> creation like Oracle's CREATE DATABAWSE .... NATIONAL CHARACTER SET >> AL16UTF16. The default it the database set. > > Hmm. So under that design, a database could support up to a total of > two character sets, the one that you get when you say 'foo' and the > other one that you get when you say n'foo'. > > I guess we could do that, but it seems a bit limited. If we're going > to go to the trouble of supporting multiple character sets, why not > support an arbitrary number instead of just two? I agree with you about the arbitrary number. Tatsuo san gave us a good suggestion. Let's consider how to implement that. 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