From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Reuly Bússolo Mendes <reuly@terra.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem in order by
Date: Mon, 11 Apr 2005 08:05:58 -0700 (PDT)
Message-ID: <20050411080350.I28912@megazone.bigpanda.com> (raw)
In-Reply-To: <00b001c53e98$8c84c630$5c00a8c0@intranet.tecmicro.com.br>
References: <00b001c53e98$8c84c630$5c00a8c0@intranet.tecmicro.com.br>
On Mon, 11 Apr 2005, [iso-8859-1] Reuly Bússolo Mendes wrote:
> In the Cygwin, the return is correct:
>
> prodes
> ----------------------------------------------------
> TELHA FRANCESA CAMBORIU
> TELHA PORTUGUESA SAO CRISTOVAO
> TELHA ROMANA LEONEL PEREIRA
> TELHA TRANSPARENTE FRANCESA
> TELHA TRANSPARENTE PORTUGUESA
> TELHA TRANSPARENTE ROMANA
> TELHA ZINCO 1 1/2 P/POSTE TELHADO
> TELHAO FRANCES SAO CRISTOVAO *
> TELHAO ROMANO SAO CRISTOVAO-GOIVA *
>
>
> But in Linux the return is:
>
> prodes
> ----------------------------------------------------
> TELHA FRANCESA CAMBORIU
> TELHAO FRANCES SAO CRISTOVAO *
> TELHAO ROMANO SAO CRISTOVAO-GOIVA *
> TELHA PORTUGUESA SAO CRISTOVAO
> TELHA ROMANA LEONEL PEREIRA
> TELHA TRANSPARENTE FRANCESA
> TELHA TRANSPARENTE PORTUGUESA
> TELHA TRANSPARENTE ROMANA
> TELHA ZINCO 1 1/2 P/POSTE TELHADO
>
> I already executed vacuumbd and reindex database but nothing.
>
> Somebody could help me?
This probably is because you have a different collation set on the redhat
box. If you are using something other than "C" locale, the ordering on the
redhat box seems reasonable given that most locales ignore spaces for
their first pass, so 'TELHAO' < 'TELHA P' for example. If you want byte
ordering sorting, you can initdb in "C" locale.
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: sszabo@megazone.bigpanda.com, reuly@terra.com.br
Subject: Re: Problem in order by
In-Reply-To: <20050411080350.I28912@megazone.bigpanda.com>
References: <00b001c53e98$8c84c630$5c00a8c0@intranet.tecmicro.com.br> <20050411080350.I28912@megazone.bigpanda.com>
* 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