From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Cc: | Erika Terahata Torres Prada e Silva - MPS <erika(dot)prada(at)previdencia(dot)gov(dot)br> |
Subject: | Re: RES: Issue on Varchar Ordering |
Date: | 2006-08-17 16:15:08 |
Message-ID: | 200608171815.09141.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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/
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2006-08-17 16:17:47 | Re: Monitoring error messages |
Previous Message | Alvaro Herrera | 2006-08-17 14:52:54 | Re: RES: Issue on Varchar Ordering |