pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ozer, Pam <pozer@automotive.com>
Cc: Samuel Gendler <sgendler@ideasculptor.com>
Cc: emilu@encs.concordia.ca
Cc: pgsql-sql@postgresql.org
Subject: Re: Sorting Issue
Date: Tue, 10 May 2011 12:47:06 -0400
Message-ID: <18244.1305046026@sss.pgh.pa.us> (raw)
In-Reply-To: <216FFB77CBFAEE4B8EE4DF0A939FF1D14F85FB@mail-001.corp.automotive.com>
References: <216FFB77CBFAEE4B8EE4DF0A939FF1D14F85F1@mail-001.corp.automotive.com>
	<4DC84284.4000903@encs.concordia.ca>
	<216FFB77CBFAEE4B8EE4DF0A939FF1D14F85F7@mail-001.corp.automotive.com>
	<4DC845EC.1020806@encs.concordia.ca>
	<216FFB77CBFAEE4B8EE4DF0A939FF1D14F85F8@mail-001.corp.automotive.com>
	<4DC850CC.50409@encs.concordia.ca>
	<BANLkTikJhPpiM-rV9DX1rp_1dJhbTGOtZQ@mail.gmail.com>
	<4547.1304976514@sss.pgh.pa.us>
	<216FFB77CBFAEE4B8EE4DF0A939FF1D14F85F9@mail-001.corp.automotive.com>
	<216FFB77CBFAEE4B8EE4DF0A939FF1D14F85FA@mail-001.corp.automotive.com>
	<216FFB77CBFAEE4B8EE4DF0A939FF1D14F85FB@mail-001.corp.automotive.com>

"Ozer, Pam" <pozer@automotive.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



view thread (17+ messages)  latest in thread

Message-ID: <18244.1305046026@sss.pgh.pa.us>
Permalink:  ../18244.1305046026@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18244.1305046026@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pozer@automotive.com, sgendler@ideasculptor.com, emilu@encs.concordia.ca
  Subject: Re: Sorting Issue
  In-Reply-To: <18244.1305046026@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox