From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Jodi Kanter <jkanter(at)virginia(dot)edu> |
Cc: | Postgres Admin List <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: locale support |
Date: | 2003-05-07 20:15:21 |
Message-ID: | 20030507201521.GC29594@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Wed, May 07, 2003 at 15:34:52 -0400,
Jodi Kanter <jkanter(at)virginia(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 2003-05-07 20:33:32 | Re: locale support |
Previous Message | Peter Eisentraut | 2003-05-07 20:05:14 | Re: locale support |