Re: order by query wrong result

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: order by query wrong result
Дата
Msg-id 27275.1416413426@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: order by query wrong result  (Silvio Brandani <silvio.brandani@tech.sdb.it>)
Ответы Re: order by query wrong result  (Silvio Brandani <silvio.brandani@tech.sdb.it>)
Список pgsql-admin
Silvio Brandani <silvio.brandani@tech.sdb.it> writes:
> Hi,
>   lc_collate
> -------------
>   en_US.UTF-8

en_US (and, in fact, most Linux locales other than C) uses "dictionary
order", which ignores pretty much everything except letters in its
first-pass comparison.

You can check that it's not just Postgres being weird by feeding the
same data through sort(1) after setting LC_COLLATE this way in its
environment.  You'll get the same results.

            regards, tom lane


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

Предыдущее
От: Silvio Brandani
Дата:
Сообщение: Re: order by query wrong result
Следующее
От: Silvio Brandani
Дата:
Сообщение: Re: order by query wrong result