Re: lc_collate issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lc_collate issue
Дата
Msg-id 6263.1187992360@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: lc_collate issue  (Cody Pisto <cpisto@rvweb.com>)
Ответы Re: lc_collate issue
Список pgsql-general
Cody Pisto <cpisto@rvweb.com> writes:
> If this is potentially a problem in postgres somewhere, point me in the
> general direction and I'm more than willing to fix it myself..

You seem not to have absorbed what I said.  This *is* the correct result
according to that locale's definition of sorting.  You can demonstrate
that without any use of Postgres:

[tgl@rh2 ~]$ cat fooey
Somethang
-SOMETHING ELSE-
Something else
[tgl@rh2 ~]$ LANG=C sort fooey
-SOMETHING ELSE-
Somethang
Something else
[tgl@rh2 ~]$ LANG=en_US sort fooey
Somethang
Something else
-SOMETHING ELSE-
[tgl@rh2 ~]$

If you prefer C sort ordering, run Postgres in C locale.  It's as
simple as that.

            regards, tom lane

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

Предыдущее
От: "Alexander Staubo"
Дата:
Сообщение: Re: PostgreSQL vs Firebird feature comparison finished
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: PostgreSQL vs Firebird feature comparison finished