pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Scott Marlowe <scott.marlowe@gmail.com>
To: Samuel Gendler <sgendler@ideasculptor.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ozer, Pam <pozer@automotive.com>
Cc: emilu@encs.concordia.ca
Cc: pgsql-sql@postgresql.org
Subject: Re: Sorting Issue
Date: Tue, 10 May 2011 11:56:56 -0600
Message-ID: <BANLkTikp8mUyKn7wmBgrjDtimJZGY2CU4w@mail.gmail.com> (raw )
In-Reply-To: <BANLkTi=biKbS6yYCUKGSuFzHocBO6TnLew@mail.gmail.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 >
<18244.1305046026@sss.pgh.pa.us >
<BANLkTi=biKbS6yYCUKGSuFzHocBO6TnLew@mail.gmail.com >
On Tue, May 10, 2011 at 11:45 AM, Samuel Gendler
<sgendler@ideasculptor.com> wrote:
>
>
> On Tue, May 10, 2011 at 9:47 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>
>> "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).
>
>
> ugh. So what's the initdb incantation necessary to sort the way I'd expect
> an alphabetic sort to happen? I'm literally just in the process of bringing
> up a new project, so it's a perfect opportunity for me to get this set up
> correctly to begin with. THe default on my system was definitely
> en_US.utf8.
initdb --locale=C
view thread (17+ messages) latest in thread
Message-ID: <BANLkTikp8mUyKn7wmBgrjDtimJZGY2CU4w@mail.gmail.com>
Permalink: ../BANLkTikp8mUyKn7wmBgrjDtimJZGY2CU4w@mail.gmail.com/
Also on: postgresql.org/message-id/BANLkTikp8mUyKn7wmBgrjDtimJZGY2CU4w@mail.gmail.com
copy link · copy postgr.es
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: scott.marlowe@gmail.com, sgendler@ideasculptor.com, tgl@sss.pgh.pa.us, pozer@automotive.com, emilu@encs.concordia.ca
Subject: Re: Sorting Issue
In-Reply-To: <BANLkTikp8mUyKn7wmBgrjDtimJZGY2CU4w@mail.gmail.com>
* 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