X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0B07F4763BF for ; Wed, 7 May 2003 16:14:10 -0400 (EDT) Received: from wolff.to (wolff.to [66.93.249.74]) by postgresql.org (Postfix) with SMTP id 5B73647639B for ; Wed, 7 May 2003 16:14:09 -0400 (EDT) Received: (qmail 29677 invoked by uid 500); 7 May 2003 20:15:21 -0000 Date: Wed, 7 May 2003 15:15:21 -0500 From: Bruno Wolff III To: Jodi Kanter Cc: Postgres Admin List Subject: Re: locale support Message-ID: <20030507201521.GC29594@wolff.to> Mail-Followup-To: Jodi Kanter , Postgres Admin List References: <3EB95FDC.70609@virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EB95FDC.70609@virginia.edu> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-38.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/85 X-Sequence-Number: 8647 On Wed, May 07, 2003 at 15:34:52 -0400, Jodi Kanter 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.