pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Jodi Kanter <jkanter@virginia.edu>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: locale support
Date: Wed, 7 May 2003 15:15:21 -0500
Message-ID: <20030507201521.GC29594@wolff.to> (raw)
In-Reply-To: <3EB95FDC.70609@virginia.edu>
References: <3EB95FDC.70609@virginia.edu>

On Wed, May 07, 2003 at 15:34:52 -0400,
  Jodi Kanter <jkanter@virginia.edu> wrote:
> Just a simple question regarding which locale setting applies to which 
> type of sorting. I have two machines, production and development. The 
> development machine has LC_COLLATE and LC_CTYPE set to C and the other 
> has them both set to en_US.
> We originally changed the development machine from en_US to C because we 
> were having a problem with spaces being sorted in correctly. That has 
> been fixed on the development box, but I now noticed it is sorting lower 
> case letters after all capital letters. I would prefer that case is 
> ignored when alphabetical sorts are completed. This type of sort is 
> working correctly on the machine where both locales are set to en_US.
> Does this mean that one of the above mentioned locales needs to be set 
> back to en_US? I would like to have case ignored but I want to be 
> careful not to mess up the sorting of spaces, which we have already 
> fixed. I hate to have to test on my own and then have to reinitialize 
> more than once! Please advise if you can.

You could order by the lower function and still keep the C locale.
If you need an index, you can use a functional index.




view thread (6+ messages)  latest in thread

Message-ID: <20030507201521.GC29594@wolff.to>
Permalink:  ../20030507201521.GC29594@wolff.to/
Also on:    postgresql.org/message-id/20030507201521.GC29594@wolff.to

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno@wolff.to, jkanter@virginia.edu
  Subject: Re: locale support
  In-Reply-To: <20030507201521.GC29594@wolff.to>
  References: <3EB95FDC.70609@virginia.edu> <20030507201521.GC29594@wolff.to>

* 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