pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-admin@postgresql.org
Cc: Erika Terahata Torres Prada e Silva - MPS <erika.prada@previdencia.gov.br>
Subject: Re: RES: Issue on Varchar Ordering
Date: Thu, 17 Aug 2006 18:15:08 +0200
Message-ID: <200608171815.09141.peter_e@gmx.net> (raw)
In-Reply-To: <5519B95F9CA8B94DA8DE3F0A3337567201781A5F@wtdfl055.prevnet>
References: <5519B95F9CA8B94DA8DE3F0A3337567201781A5F@wtdfl055.prevnet>

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/



view thread (6+ messages)  latest in thread

Message-ID: <200608171815.09141.peter_e@gmx.net>
Permalink:  ../200608171815.09141.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200608171815.09141.peter_e@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter_e@gmx.net, erika.prada@previdencia.gov.br
  Subject: Re: Issue on Varchar Ordering
  In-Reply-To: <200608171815.09141.peter_e@gmx.net>
  References: <5519B95F9CA8B94DA8DE3F0A3337567201781A5F@wtdfl055.prevnet> <200608171815.09141.peter_e@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox