From: Itagaki Takahiro <itagaki.takahiro@gmail.com>
To: Mike Hepworth <michael.w.hepworth@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6056: sorting issues
Date: Tue, 14 Jun 2011 15:44:35 +0900
Message-ID: <BANLkTikakdSQTZx5cXApzoyOyZ414bSD5Q@mail.gmail.com> (raw)
In-Reply-To: <201106132152.p5DLq6Hq046860@wwwmaster.postgresql.org>
References: <201106132152.p5DLq6Hq046860@wwwmaster.postgresql.org>
On Tue, Jun 14, 2011 at 06:52, Mike Hepworth
<michael.w.hepworth@gmail.com> wrote:
> Bug reference: 6056
> Logged by: Mike Hepworth
> Email address: michael.w.hepworth@gmail.com
> PostgreSQL version: 8.4
> Operating system: Ubuntu 10.4
> Description: sorting issues
> Details:
>
> Have database that is utf-8 encoding so that I can support both english,
> french, and spanish. Having problems with the ordering of data.
>
> I execute the following sql statment:
>
> select * from (values('HALL, ANDY'),('HALLBERG, FRANK'),('HALLDEN,
> DOUGLAS'),('HALL, DOUGLAS') ) x ORDER BY 1;
>
> and get the following results
>
> HALL, ANDY
> HALLBERG, FRANK
> HALLDEN, DOUGLAS
> HALL, DOUGLAS
What locale did you use? Sort order depends on not only
encoding but also collation. Please check "SHOW lc_collate".
Your locale seems to just ignore symbol characters.
I have an expected result at least in C locale.
--
Itagaki Takahiro
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-bugs@postgresql.org
Cc: itagaki.takahiro@gmail.com, michael.w.hepworth@gmail.com
Subject: Re: BUG #6056: sorting issues
In-Reply-To: <BANLkTikakdSQTZx5cXApzoyOyZ414bSD5Q@mail.gmail.com>
References: <201106132152.p5DLq6Hq046860@wwwmaster.postgresql.org> <BANLkTikakdSQTZx5cXApzoyOyZ414bSD5Q@mail.gmail.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