Skip site navigation (1) Skip section navigation (2)

Re: Different sort order btwn Linux and Windows

From: Thom Brown <thom(at)linux(dot)com>
To: Doug Gorley <doug(dot)gorley(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Different sort order btwn Linux and Windows
Date: 2011-04-27 20:04:47
Message-ID: BANLkTikfWqM2mY2TVPF9LzeEtWp4jyDKtA@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
On 27 April 2011 20:28, Doug Gorley <doug(dot)gorley(at)gmail(dot)com> wrote:

> I'm running the following SQL commands on a new PostgreSQL 9.0 database,
> one on Linux, one on Windows.
>
> create table i (j varchar(4));
> insert into i (j) values ('A'), ('E'), ('<C P'), ('F');
> select j from i order by j asc;
>
> On the Windows server I get the following:
>
> ----
> <C P
> A
> E
> F
> ----
>
> On the Linux server, I get this instead:
>
> ----
> A
> <C P
> E
> F
> ----
>
> Can anyone tell me why the sort order would come out differently?
>
>
The collations are different on your two databases.

Try:

SHOW lc_collate;

-- 
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

pgsql-general by date

Next:From: Merlin MoncureDate: 2011-04-27 20:17:45
Subject: Re: [HACKERS] PostgreSQL Core Team
Previous:From: Jaime CasanovaDate: 2011-04-27 19:37:32
Subject: Re: [HACKERS] PostgreSQL Core Team

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group