From: Reuly Bússolo Mendes <reuly@terra.com.br>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem in order by
Date: Mon, 11 Apr 2005 13:43:10 -0300
Message-ID: <008701c53eb5$8d87d820$5c00a8c0@intranet.tecmicro.com.br> (raw)
References: <00b001c53e98$8c84c630$5c00a8c0@intranet.tecmicro.com.br>
<20050411080350.I28912@megazone.bigpanda.com>
Hi Stephan, tks
I drop database and move directory data to data01.
I already executed "initdb --locale=C" and the file postgresql.conf change
to LC_MESSAGES, LC_MONETARY, LC_NUMERIC and LC_TIME = 'C', but the problem
persist.
I already executed too after move the directory data:
initdb --encoding=LATIN1 --locale=C
initdb --encoding=SQL_ASCII --locale=C
Somebody have more any ideia?
Tks
----- Original Message -----
From: "Stephan Szabo" <sszabo@megazone.bigpanda.com>
To: "Reuly Bússolo Mendes" <reuly@terra.com.br>
Cc: <pgsql-admin@postgresql.org>
Sent: Monday, April 11, 2005 12:05 PM
Subject: Re: [ADMIN] Problem in order by
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.
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.6 - Release Date: 11/4/2005
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: reuly@terra.com.br, sszabo@megazone.bigpanda.com
Subject: Re: Problem in order by
In-Reply-To: <008701c53eb5$8d87d820$5c00a8c0@intranet.tecmicro.com.br>
References: <00b001c53e98$8c84c630$5c00a8c0@intranet.tecmicro.com.br> <20050411080350.I28912@megazone.bigpanda.com> <008701c53eb5$8d87d820$5c00a8c0@intranet.tecmicro.com.br>
* 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