From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
Cc: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, Radek Strnad <radek(dot)strnad(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: WIP patch: Collation support |
Date: | 2008-09-23 11:19:35 |
Message-ID: | 48D8D0C7.9080407@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Martijn van Oosterhout napsal(a):
> On Mon, Sep 22, 2008 at 06:11:04PM +0300, Heikki Linnakangas wrote:
>>> This patch should allow to use both system catalog and ICU.
>> Not without another patch that actually introduces ICU support. What
>> that would look like, how that would be stored in the catalogs, and
>> whether we want that is whole another topic. Without that, the STRCOLFN
>> part of the original patch is pointless, and I would've ripped that out
>> anyway even if we decided to add the pg_collation catalog in this release.
>
> Eh? How you store collations names is easy. Every collation has a
> textual name which is what we store in the catalog. I'm not sure why
> you'd think it'd be any more complicated than that. And it has
> precisely nothing to do with ICU and everything to do with being able
> to support multiple source of collation information. We already have
> two: builtin (strcmp/memcmp) and C library (strcoll). Letting peope add
> more is the goal.
pg_collation catalog is also important for pg_dump, because system
collation names are not compatible over OS and pg_dump output should be
portable. pg_collation adds abstract layer which solve this problem.
> I'm sure once the catalog exists the existing ICU-for-Postgres patch
> will be adjusted to use it.
Yes, I agree with Martijn.
Zdenek
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2008-09-23 11:26:32 | Re: WIP patch: Collation support |
Previous Message | Martijn van Oosterhout | 2008-09-23 10:51:09 | Re: WIP patch: Collation support |