Re: WIP patch: Collation support - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: WIP patch: Collation support
Date
Msg-id 48D8EEBA.5000705@hagander.net
Whole thread Raw
In response to Re: WIP patch: Collation support  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: WIP patch: Collation support  (Petr Jelinek <pjmodos@pjmodos.net>)
List pgsql-hackers
Tom Lane wrote:
> Martijn van Oosterhout <kleptog@svana.org> writes:
>> On Tue, Sep 23, 2008 at 01:32:38PM +0300, Heikki Linnakangas wrote:
>>> "locale -a" manages to do it somehow...
> 
>> Sure, by (on glibc) opening the binary archive and parsing it and then
>> trying to reverse lookup the alias list. We could ofcourse program
>> something for each platform to determine a list but who is going to
>> maintain that? How do you handle the list changing?
> 
> exec("locale -a") ...
> 
> I suppose we'd need something else for Windows, but I'm sure there's
> a way.

IIRC, the data is in the registry. Should be enumerable somehow - we'll
have to do it platform specific of course, but it's not the first time
we'd do that for windows...

//Magnus


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Planner question
Next
From: Gregory Stark
Date:
Subject: Re: Initial prefetch performance testing