Re: Collation rules and multi-lingual databases

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Collation rules and multi-lingual databases
Дата
Msg-id 87d6ezkgko.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: Collation rules and multi-lingual databases  (Dennis Gearon <gearond@fireserve.net>)
Ответы Re: Collation rules and multi-lingual databases  (Greg Stark <gsstark@mit.edu>)
Список pgsql-general
Dennis Gearon <gearond@fireserve.net> writes:

> I think it would be nice, and I may write it eventually, to have a function
> called:
>
> COLLATION_VALUE( 'string', 'encoding' )

Indeed that would be really nice. I wish I had that and a pony.

Unfortunately my understanding is that the collation rules are simply too
complex to allow such a function in general. It's too bad because it would
indeed eliminate a lot of the problems in a single swoop.

Hm. But perhaps I can come up with such a function for the few collation
domains I care about. I think English is just a matter of making it case
insensitive, and fr_xx is just a matter of squashing accents. In which case I
should be able to do it myself.

--
greg

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: query optimization: aggregate and distinct
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Buglist