Re: case sensitive/insensitive confusion - Mailing list pgsql-sql

From Christoph Haller
Subject Re: case sensitive/insensitive confusion
Date
Msg-id 41FF6B8D.E1010AEA@rodos.fzk.de
Whole thread Raw
In response to case sensitive/insensitive confusion  (Christoph Haller <ch@rodos.fzk.de>)
List pgsql-sql
Peter Eisentraut wrote:
> 
> Christoph Haller wrote:
> > It seems to me under hpux the sort is done case sensitive,
> > as would one expect on SQL_ASCII encoding, whereas
> > under linux a case insensitive sort is done.
> 
> The sort order depends entirely on the locale that you specify to initdb
> (not the encoding).  Please check the documentation there.
> 
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
> 

Under hpux I see
pg_controldata $PGDATA
...
LC_COLLATE:                           C
LC_CTYPE:                             C
Under linux I see
pg_controldata $PGDATA
...
LC_COLLATE:                           en_US
LC_CTYPE:                             en_US

That explains the confusion, even to me. 
Thanx to Peter for the quick reply. 

Regards, Christoph


pgsql-sql by date:

Previous
From: Sean Davis
Date:
Subject: Re: [PERFORM] OFFSET impact on Performance???
Next
From: Theodore Petrosky
Date:
Subject: Re: case sensitive/insensitive confusion