pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6244: Ordering Problem
4+ messages / 3 participants
[nested] [flat]
* BUG #6244: Ordering Problem
@ 2011-10-07 13:31 Murilo Lobato <murilo@perfilweb.com.br>
2011-10-07 15:41 ` Re: BUG #6244: Ordering Problem Merlin Moncure <mmoncure@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Murilo Lobato @ 2011-10-07 13:31 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 6244
Logged by: Murilo Lobato
Email address: murilo@perfilweb.com.br
PostgreSQL version: 9.0.3
Operating system: Centos 5.5
Description: Ordering Problem
Details:
We have a clients table, and when we run a select on the table ordering by
name we get unexpected results. The whitespaces on the string are not being
computed, as follown:
what is happening:
1 - Lucia Amaral
2 - Luci Martins
What we expecting:
1 - Luci Martins
2 - Lucia Amaral
Resuming, the whitespace is being ignored during the order.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6244: Ordering Problem
2011-10-07 13:31 BUG #6244: Ordering Problem Murilo Lobato <murilo@perfilweb.com.br>
@ 2011-10-07 15:41 ` Merlin Moncure <mmoncure@gmail.com>
2011-10-11 21:57 ` Re: BUG #6244: Ordering Problem Merlin Moncure <mmoncure@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Merlin Moncure @ 2011-10-07 15:41 UTC (permalink / raw)
To: Murilo Lobato <murilo@perfilweb.com.br>; +Cc: pgsql-bugs
On Fri, Oct 7, 2011 at 8:31 AM, Murilo Lobato <murilo@perfilweb.com.br> wrote:
>
> The following bug has been logged online:
>
> Bug reference: 6244
> Logged by: Murilo Lobato
> Email address: murilo@perfilweb.com.br
> PostgreSQL version: 9.0.3
> Operating system: Centos 5.5
> Description: Ordering Problem
> Details:
>
> We have a clients table, and when we run a select on the table ordering by
> name we get unexpected results. The whitespaces on the string are not being
> computed, as follown:
>
> what is happening:
> 1 - Lucia Amaral
> 2 - Luci Martins
>
> What we expecting:
> 1 - Luci Martins
> 2 - Lucia Amaral
>
> Resuming, the whitespace is being ignored during the order.
problems like this are usually encoding/locale related. what's
database encoding, and what's database lc_collate?
merlin
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6244: Ordering Problem
2011-10-07 13:31 BUG #6244: Ordering Problem Murilo Lobato <murilo@perfilweb.com.br>
2011-10-07 15:41 ` Re: BUG #6244: Ordering Problem Merlin Moncure <mmoncure@gmail.com>
@ 2011-10-11 21:57 ` Merlin Moncure <mmoncure@gmail.com>
2011-10-12 00:26 ` Re: BUG #6244: Ordering Problem Leandro Guimarães Faria Corce DUTRA <leandro@dutras.org>
0 siblings, 1 reply; 4+ messages in thread
From: Merlin Moncure @ 2011-10-11 21:57 UTC (permalink / raw)
To: Murilo - Perfilweb Informática <murilo@perfilweb.com.br>; +Cc: pgsql-bugs
On Mon, Oct 10, 2011 at 7:35 AM, Murilo - Perfilweb Informática
<murilo@perfilweb.com.br> wrote:
> Hello,
> My encoding is LATIN1, my collation is pt_BR
> Thank You.
> 2011/10/7 Merlin Moncure <mmoncure@gmail.com>
hm, LATIN1 is not a unicode supporting encoding, that might be
problem. your database should probably be defined UTF8. not an
expert in encodings though...anyone else care to comment? (also, try
not to top-post and be sure to cc the list).
merlin
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6244: Ordering Problem
2011-10-07 13:31 BUG #6244: Ordering Problem Murilo Lobato <murilo@perfilweb.com.br>
2011-10-07 15:41 ` Re: BUG #6244: Ordering Problem Merlin Moncure <mmoncure@gmail.com>
2011-10-11 21:57 ` Re: BUG #6244: Ordering Problem Merlin Moncure <mmoncure@gmail.com>
@ 2011-10-12 00:26 ` Leandro Guimarães Faria Corce DUTRA <leandro@dutras.org>
0 siblings, 0 replies; 4+ messages in thread
From: Leandro Guimarães Faria Corce DUTRA @ 2011-10-12 00:26 UTC (permalink / raw)
To: Merlin Moncure <mmoncure@gmail.com>; +Cc: Murilo - Perfilweb Informática <murilo@perfilweb.com.br>; pgsql-bugs
Le 2011-O-11 18h57, Merlin Moncure a écrit :
>
> hm, LATIN1 is not a unicode supporting encoding, that might be
> problem. your database should probably be defined UTF8.
Precisely, Latin1 is obsolete. Latin9 is better, as it at least
includes the Euro character €, but still not as good as UTF-8.
> expert in encodings though...anyone else care to comment? (also, try
> not to top-post and be sure to cc the list).
Better yet, this is discussed almost every week in
pgbr-geral@postgresql.org.br
--
skype:leandro.gfc.dutra?chat Yahoo!: ymsgr:sendIM?lgcdutra
+55 (61) 3546 7191 gTalk: xmpp:leandrod@jabber.org
+55 (11) 9406 7191 ICQ/AIM: aim:GoIM?screenname=61287803
BRAZIL GMT-3 MSN: msnim:chat?contact=leandro@dutra.fastmail.fm
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2011-10-12 00:26 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07 13:31 BUG #6244: Ordering Problem Murilo Lobato <murilo@perfilweb.com.br>
2011-10-07 15:41 ` Merlin Moncure <mmoncure@gmail.com>
2011-10-11 21:57 ` Merlin Moncure <mmoncure@gmail.com>
2011-10-12 00:26 ` Leandro Guimarães Faria Corce DUTRA <leandro@dutras.org>
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