Re: [PATCHES] Postgres-6.3.2 locale patch (fwd) - Mailing list pgsql-hackers

From Peter Mount
Subject Re: [PATCHES] Postgres-6.3.2 locale patch (fwd)
Date
Msg-id Pine.LNX.3.95.980604084711.22446B-100000@taer.maidstone.gov.uk
Whole thread Raw
Responses Re: [HACKERS] Re: [PATCHES] Postgres-6.3.2 locale patch (fwd)  (t-ishii@sra.co.jp)
Re: [HACKERS] Re: [PATCHES] Postgres-6.3.2 locale patch (fwd)  (dg@illustra.com (David Gould))
List pgsql-hackers
On Thu, 4 Jun 1998, Thomas G. Lockhart wrote:

> Hi. I'm looking for non-English-using Postgres hackers to participate in
> implementing NCHAR() and alternate character sets in Postgres. I think
> I've worked out how to do the implementation (not the details, just a
> strategy) so that multiple character sets will be allowed in a single
> database, additional character sets can be loaded at run-time, and so
> that everything will behave transparently.

Ok, I'm English, but I'll keep a close eye on this topic as the JDBC
driver has two methods that handle Unicode strings.

Currently, they simply call the Ascii/Binary methods. But they could (when
NCHAR/NVARCHAR/CHARACTER SET is the columns type) handle the translation
between the character set and Unicode.

> I would propose to do this for v6.4 as user-defined packages (with
> compile-time parser support) on top of the existing USE_LOCALE and MB
> patches so that the existing compile-time options are not changed or
> damaged.

In a same vein, for getting JDBC up to speed with this, we may need to
have a function on the backend that will handle the translation between
the encoding and Unicode. This would allow the JDBC driver to
automatically handle a new character set without having to write a class
for each package.

--
Peter Mount, peter@maidstone.gov.uk
Postgres email to peter@taer.maidstone.gov.uk & peter@retep.org.uk
Remember, this is my work email, so please CC my home address, as I may
not always have time to reply from work.



pgsql-hackers by date:

Previous
From: Brett McCormick
Date:
Subject: Re: [HACKERS] keeping track of connections
Next
From: Stephane MONEGER
Date:
Subject: Problem with array of char