Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 04900635C4E for ; Fri, 8 May 2009 15:26:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 64427-01-7 for ; Fri, 8 May 2009 15:26:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id F2835637544 for ; Fri, 8 May 2009 14:57:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n48HvTpp010925; Fri, 8 May 2009 13:57:29 -0400 (EDT) To: Peter Koczan cc: pgsql-sql@postgresql.org Subject: Re: ascii-betical sort order? In-reply-to: <4544e0330905081026u36b29014i43f1fc85d048916f@mail.gmail.com> References: <4544e0330905081026u36b29014i43f1fc85d048916f@mail.gmail.com> Comments: In-reply-to Peter Koczan message dated "Fri, 08 May 2009 12:26:25 -0500" Date: Fri, 08 May 2009 13:57:28 -0400 Message-ID: <10924.1241805448@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.145 tagged_above=0 required=5 tests=AWL=0.145 X-Spam-Level: X-Archive-Number: 200905/35 X-Sequence-Number: 32527 Peter Koczan writes: > Is there some way to do ascii-betical sort ordering in postgres (i.e. > capital letters come before lowercase)? It appears that text ordering > is dictionary-alphabetical. You're apparently using a non-C locale ... you need to re-initdb in C locale. regards, tom lane