Re: For review: Initial support for COLLATE

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: For review: Initial support for COLLATE
Дата
Msg-id 20050907193734.GB10273@svana.org
обсуждение исходный текст
Ответ на For review: Initial support for COLLATE  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: For review: Initial support for COLLATE  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
On Wed, Sep 07, 2005 at 09:12:12PM +0200, Peter Eisentraut wrote:
> No, and in fact the terminology mixup in your patch and description
> concerns me.  If you are talking about collation, then the data types,
> system catalog columns, etc. should talk about collation, not about
> "locale", because that encompasses a number of other things that can be
> handled independent of the collation order.

That's because locale handling == collate handling. If you want to have
a system that allows you to choose what collate order to use when, it
also allows you to control all the other locale attributes with exactly
the same code. You can't seperate them.

To make multiple COLLATE orders work, PostgreSQL needs a new locale
framework, one that is not bound by POSIX. That's why you see both
things referred to.

Look at the POSIX interface, look at ICU. They both provide collate
order *and* date/time formats *and* number formatting. Pretending
they're seperate is silly.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: For review: Initial support for COLLATE
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: For review: Initial support for COLLATE