Re: Sorting Issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ozer, Pam" <pozer(at)automotive(dot)com>
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-10 16:47:06
Message-ID: 18244.1305046026@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"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 John Fabiani 2011-05-10 16:48:41 Dates and NULL's`
Previous Message Ozer, Pam 2011-05-10 15:26:27 Re: Sorting Issue