Re: Strange results of ORDER BY clause when item begins

Поиск
Список
Период
Сортировка
От Ragnar Hafstað
Тема Re: Strange results of ORDER BY clause when item begins
Дата
Msg-id 1106170615.22416.6.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Strange results of ORDER BY clause when item begins with slash or backslash  (SCassidy@overlandstorage.com)
Список pgsql-general
On Wed, 2005-01-19 at 11:24 -0800, SCassidy@overlandstorage.com wrote:
> [non-word character being ignored by ORDER BY]
...
> testdb1=> show LC_COLLATE;
>  lc_collate
> -------------
>  en_US.UTF-8
> (1 row)

this is a 'feature' of your en_US locale:

bash$ export LC_COLLATE=en_US
bash$ (echo "usra";echo "usrq";echo "/usr/lib")| sort
usra
/usr/lib
usrq
bash$ export LC_COLLATE=C
bash$ (echo "usra";echo "usrq";echo "/usr/lib")| sort
/usr/lib
usra
usrq

maybe you should have run initdb with LC_COLLATE=C

gnari



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

Предыдущее
От: "Dann Corbit"
Дата:
Сообщение: Re: need an advice on running Database
Следующее
От: Eric E
Дата:
Сообщение: PL/TCL functions won't run