Re: Is it bad sorting in UTF ??

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Is it bad sorting in UTF ??
Дата
Msg-id 49E47A1E.4080200@archonet.com
обсуждение исходный текст
Ответ на Is it bad sorting in UTF ??  (wstrzalka <wstrzalka@gmail.com>)
Ответы Re: Is it bad sorting in UTF ??  (Craig Ringer <craig@postnewspapers.com.au>)
Re: Is it bad sorting in UTF ??  (Lincoln Yeoh <lyeoh@pop.jaring.my>)
Список pgsql-general
wstrzalka wrote:
> Why PG sort's my data in case insensitive manner?

> masterdb=# select name, setting from pg_settings WHERE name ilike 'lc
> %';
>     name     |   setting
> -------------+-------------
>  lc_collate  | en_US.UTF-8

Because that's what en_US.UTF-8 does. If you want "computer-style"
sorting choose the "C" locale. You'll need to dump all your databases an
re-initdb to do that I'm afraid. I believe 8.4 is going to allow
different locales for each database though.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: wstrzalka
Дата:
Сообщение: Is it bad sorting in UTF ??
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Is it bad sorting in UTF ??