Skip site navigation (1) Skip section navigation (2)

Re: String encoding during connection "handshake"

From: "Trevor Talbot" <quension(at)gmail(dot)com>
To: "Martijn van Oosterhout" <kleptog(at)svana(dot)org>
Cc: sulfinu(at)gmail(dot)com, "Usama Munir" <usama(dot)munir(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: String encoding during connection "handshake"
Date: 2007-11-28 17:38:33
Message-ID: 90bce5730711280938y69ad6a25n62b6dc1eb6d9dd97@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On 11/28/07, Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
> On Wed, Nov 28, 2007 at 05:54:05PM +0200, sulfinu(at)gmail(dot)com wrote:

> > Regarding the problem of "One True Encoding", the answer seems obvious to me:
> > use only one encoding per database cluster, either UTF-8 or UTF-16 or another
> > Unicode-aware scheme, whichever yields a statistically smaller database for
> > the languages employed by the users in their data. This encoding should be a
> > one time choice! De facto, this is already happening now, because one cannot
> > change collation rules after a cluster has been created.

> Umm, each database in a cluster can have a different encoding, so there
> is no such thing as the "cluster's encoding". You can certainly argue
> that it should be a one time choice, but I doubt you'll get people to
> remove the possibilites we have now. If fact, if anything we'd probably
> go the otherway, allow you to select the collation on a per
> database/table/column level (SQL complaince requires this).

To be clear, what sulfinu is really advocating is convergence on
Unicode period, which is the direction most international projects are
moving, when they can.  PostgreSQL's problem is that it (and AFAICT
POSIX) conflates encoding with locale, when the two are entirely
separate concepts.

I'm not entirely sure how that's supposed to solve the client
authentication issue though.  Demanding that clients present auth data
in UTF-8 is no different than demanding they present it in the
encoding it was entered in originally...

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2007-11-28 17:39:57
Subject: Re: [HACKERS] Time to update list of contributors
Previous:From: Magnus HaganderDate: 2007-11-28 17:34:57
Subject: Re: [HACKERS] Time to update list of contributors

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group