From: | Erika Terahata Torres Prada e Silva - MPS <erika(dot)prada(at)previdencia(dot)gov(dot)br> |
---|---|
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: | RES: Issue on Varchar Ordering |
Date: | 2006-08-17 13:41:01 |
Message-ID: | 5519B95F9CA8B94DA8DE3F0A3337567201781A5F@wtdfl055.prevnet |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Peter,
Thanks for answering.
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.
-----Mensagem original-----
De: Peter Eisentraut [mailto:peter_e(at)gmx(dot)net]
Enviada em: quinta-feira, 17 de agosto de 2006 10:04
Para: pgsql-admin(at)postgresql(dot)org
Cc: Erika Terahata Torres Prada e Silva - MPS
Assunto: Re: [ADMIN] Issue on Varchar Ordering
Erika Terahata Torres Prada e Silva - MPS wrote:
> I'm having the following issue:
>
> create table aluno (id serial, nome varchar(60));
>
> rodrigo=# select * from aluno order by nome offset 35 limit 5;
> id | nome
> ----+-----------------------------------
> 36 | GABRIELA HELEDA DE SOUZA
> 37 | GABRIELA JACOBY NOS
> 38 | GABRIEL ALCIDES KLIM PERONDI
> 39 | GABRIELA LETICIA BATISTA NUNES
> 40 | GABRIEL ALEXANDRE DA SILVA MANICA
> (5 registros)
>
> The problem is that records with id 38 and 40 might come before the
> others. It seems that the spacing isn't considered on ordering.
That is, for practical purposes, correct.
May I suggest that you properly normalize your tables, by putting given
name and family name into separate columns.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From | Date | Subject | |
---|---|---|---|
Next Message | Paul B. Anderson | 2006-08-17 13:56:55 | Re: RES: Issue on Varchar Ordering |
Previous Message | Daniel Medina | 2006-08-17 13:39:42 | unsubscribe |