On Tue, Jun 14, 2011 at 06:52, Mike Hepworth
> Bug reference: 6056
> Logged by: Mike Hepworth
> Email address: michael(dot)w(dot)hepworth(at)gmail(dot)com
> PostgreSQL version: 8.4
> Operating system: Ubuntu 10.4
> Description: sorting issues
> 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.
In response to
pgsql-bugs by date
|Next:||From: hubert depesz lubaczewski||Date: 2011-06-14 11:14:15|
|Subject: Re: BUG #6056: sorting issues|
|Previous:||From: Mike Hepworth||Date: 2011-06-13 21:52:06|
|Subject: BUG #6056: sorting issues|