Re: Patch for collation using ICU - Mailing list pgsql-hackers

From Palle Girgensohn
Subject Re: Patch for collation using ICU
Date
Msg-id 191F88947BE3DF929975A3E3@palle.girgensohn.se
Whole thread Raw
In response to Re: Patch for collation using ICU  (Hannu Krosing <hannu@tm.ee>)
Responses Re: Patch for collation using ICU  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers

--On söndag, mars 27, 2005 04.34.03 +0300 Hannu Krosing <hannu@tm.ee> wrote:

> On L, 2005-03-26 at 03:09 +0100, Palle Girgensohn wrote:
>
>> Hi!
>>
> ...
>> I've noticed a couple of things about using the ICU patch vs. pristine
>> pg-8.0.1:
>>
>> - ORDER BY is case insensitive when using ICU. This might break the SQL
>> standard (?), but sure is nice :)

Just a comment: ORDER BY *is* already case sensitive on Linux, since its
strcoll ignores case. I doubt very much it violates SQL standards.


> How does your patch interact with the ability to use indexes for
> anchored LIKE or regex (i.e. can "name LIKE 'start%'" still use index) ?

I don't think it matters. You still need to use the special non-locale
index functions described in the handbook to get anchored like queries use
indices. My ICU patch does not alter this. ICU is "injected" where strings
are compared and the database cluster was initialized with a multibyte
character encoding.

The problem, AFAIK, has to do with the nature of (some) locales, not with a
specific implementation of collation.

Regards,
Palle



pgsql-hackers by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: rewriter in updateable views
Next
From: Andrew Dunstan
Date:
Subject: Re: minor windows & cygwin regression failures on stable