Re: Sorting Issue

From: "Ozer, Pam" <pozer(at)automotive(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Samuel Gendler" <sgendler(at)ideasculptor(dot)com>, <emilu(at)encs(dot)concordia(dot)ca>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Sorting Issue
Date: 2011-05-18 22:22:00
Message-ID: 216FFB77CBFAEE4B8EE4DF0A939FF1D14F863C@mail-001.corp.automotive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Is there anywhere that gives you all the available collations and their
definitions? I found with the C collation it now sorts the spaces
correct but it is also case sensitive which messes with some of our
other sorts.

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Tuesday, May 10, 2011 9:47 AM
To: Ozer, Pam
Cc: Samuel Gendler; emilu(at)encs(dot)concordia(dot)ca; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Sorting Issue

"Ozer, Pam" <pozer(at)automotive(dot)com> writes:
> Isn't this the English standard for collation? Or is this a non-c
> locale as mentioned below? Is there anyway around this?

> LC_COLLATE = 'en_US.utf8'

en_US is probably using somebody's idea of "dictionary order", which
I believe includes ignoring spaces in the first pass. You might be
happier using "C" collation. Unfortunately that requires re-initdb'ing
your database (as of existing PG releases).

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Eric McKeeth 2011-05-18 23:06:36 Re: column type for pdf file
Previous Message Julien Cigar 2011-05-18 21:37:59 Re: column type for pdf file