Received: from anchor-post-36.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.94]) by postgresql.org (Postfix) with ESMTP id 767A0475484 for ; Mon, 25 Mar 2002 06:26:02 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-36.mail.demon.net with esmtp (Exim 3.35 #1) id 16pSc0-000FCM-0a; Mon, 25 Mar 2002 11:26:04 +0000 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 16pSbl-0006HG-00; Mon, 25 Mar 2002 11:25:49 +0000 Subject: Re: to --enable-locale or not to --enable-locale? From: Oliver Elphick To: Niclas Gustafsson Cc: pgsql-admin@postgresql.org In-Reply-To: <001a01c1d3ee$42345e50$b700a8c0@gmg> References: <001a01c1d3ee$42345e50$b700a8c0@gmg> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Bap1GC3w7m1yRWHurRWh" X-Mailer: Evolution/1.0.2 Date: 25 Mar 2002 11:25:48 +0000 Message-Id: <1017055549.1334.151.camel@linda> Mime-Version: 1.0 X-Archive-Number: 200203/302 X-Sequence-Number: 3836 --=-Bap1GC3w7m1yRWHurRWh Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On Mon, 2002-03-25 at 11:14, Niclas Gustafsson wrote: > Hi, I'm having trouble sorting my data. >=20 > I'm using PostgresQL 7.2 compiled with: > --enable-multibyte=3DLATIN1 --enable-locale ... > Then I've inserted some test values which seem to be sorted wrongfully > when I issue an=20 > select * from sorttest order by data ... > I want it sorted in abcd..z=E5=E4=F6 > What am I missing here? Any Ideas? 1. Does the locale you are using sort as you want? 2. Did you initdb with that locale set? (Use pg_controldata from contrib to see what locale the backend is using.) locale must be set correctly for initdb, to ensure that indexes don't get broken by changes of locale. --=20 Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C "Why are you downcast, O my soul? Why so disturbed=20=20 within me? Put your hope in God, for I will yet praise Him, my Saviour and my God." Psalm 42:11=20=20 --=-Bap1GC3w7m1yRWHurRWh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8nwk8YU1MND4dDBwRAqwMAKCMKSTZK0wEbxVKRwn0obUG29NmswCgh6PW UV35FB2xxAKxsE1JizzqfJY= =uQCH -----END PGP SIGNATURE----- --=-Bap1GC3w7m1yRWHurRWh--