Re: using strxfrm for having multi locale/please vote for

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: using strxfrm for having multi locale/please vote for
Дата
Msg-id 200506072040.26212.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: using strxfrm for having multi locale/please vote for  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian wrote:
> > Sounds like pie in the sky to me.  Exactly how do you think that
> > ICU will magically mask the fundamental semantic inconsistency?
>
> I am hoping ICU will allow us to see the next greatest value for that
> character.

As Tom says, it's a semantic inconsistency, not a lack of features.
Collation (sorting of strings) takes the entire string into account,
pattern matching compares character by character.  For example, some
collations compare strings from back to front, whereas a pattern
matching expression could never make sense of that.  The SQL standard
actually does not draw that distinction, but, well, it's broken.

Using separate operator classes for separate semantic interpretations of
data seems to be exactly the right solution.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

В списке pgsql-patches по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: SQLSTATE and SQLERRM
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Are you actively hacking on 2PC?