Re: Problem in order by

Поиск
Список
Период
Сортировка
От Reuly Bússolo Mendes
Тема Re: Problem in order by
Дата
Msg-id 008701c53eb5$8d87d820$5c00a8c0@intranet.tecmicro.com.br
обсуждение исходный текст
Ответ на Problem in order by  (Reuly Bússolo Mendes <reuly@terra.com.br>)
Ответы Re: Problem in order by  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-admin
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



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Problem in order by
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Mysql to postgres