Re: Proposal - Support for National Characters functionality - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Proposal - Support for National Characters functionality
Date
Msg-id 51E40D0F.5080408@gmx.net
Whole thread Raw
In response to Re: Proposal - Support for National Characters functionality  ("Arulappan, Arul Shaji" <arul@fast.au.fujitsu.com>)
List pgsql-hackers
On 7/15/13 1:26 AM, Arulappan, Arul Shaji wrote:
> Yes, the idea is that users will be able to declare columns of type
> NCHAR or NVARCHAR which will use the pre-determined encoding type. If we
> say that NCHAR is UTF-8 then the NCHAR column will be of UTF-8 encoding
> irrespective of the database encoding. It will be up to us to restrict
> what Unicode encodings we want to support for NCHAR/NVARCHAR columns.

I would try implementing this as an extension at first, with a new data
type that is internally encoded differently.  We have citext as
precedent for successfully implementing text-like data types in user space.




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: vacuumlo - use a cursor
Next
From: Robert Haas
Date:
Subject: Re: Add more regression tests for dbcommands