Re: RES: Issue on Varchar Ordering

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: RES: Issue on Varchar Ordering
Дата
Msg-id 200608171815.09141.peter_e@gmx.net
обсуждение исходный текст
Ответ на RES: Issue on Varchar Ordering  (Erika Terahata Torres Prada e Silva - MPS <erika.prada@previdencia.gov.br>)
Список pgsql-admin
Erika Terahata Torres Prada e Silva - MPS wrote:
> But it's not correct to my language pt_BR and it worked correctly
> with PostgreSQL at Windows and FreeBSD. I have this problem only with
> Debian and now I'm looking for some Debian related issue.

String ordering is determined by national and international standards.
In your case, glibc seems to think that ISO 14651 applies.  If you
think differently, complain to glibc, or work on changing the standard,
or define your own locale.  I wouldn't know why Windows and FreeBSD
operate differently (I have some idea, but I won't spread rumours).
But unless they have a more substantial reason than "We thought this
looks reasonable", I'd rather go with the public standard.

For that matter, you have not told what you consider the "correct"
ordering in your example, nor have you proposed a computation rule to
get there.  But in the overall scheme of things, first normal form will
cooperate better with established sorting rules (for any data type),
and vice versa.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: "Daniel Medina"
Дата:
Сообщение: unsubscribe
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Monitoring error messages