pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kristian Jörg <krjg@devo.se>
Cc: Richard Huxton <dev@archonet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Sort order with spaces?
Date: Wed, 17 Sep 2003 10:06:58 -0400
Message-ID: <1935.1063807618@sss.pgh.pa.us> (raw)
In-Reply-To: <3F6853E4.3000604@devo.se>
References: <3F682DB3.6080905@devo.se>
	<200309171144.02871.dev@archonet.com>
	<3F6853E4.3000604@devo.se>

=?ISO-8859-1?Q?Kristian_J=F6rg?= <krjg@devo.se> writes:
> Unfortunately this does not seem to help! I dumped the database, 
> recreated the cluster with initdb with LC_COLLATE = C (and even tried 
> setting LC_CTYPE to C also), and restored the database. The same 
> ordering appears...

You didn't do it right then ...

7.2's initdb is not helpful about telling you exactly what locale
settings it's using, but you could use the contrib/pg_controldata
utility to check what LC_COLLATE and LC_CTYPE settings got used.
(If you don't want to build pg_controldata, "strings
$PGDATA/global/pg_control" will do as a rough-and-ready substitute.)

Theoretically it should work to do
	export LC_COLLATE=C
	export LC_CTYPE=C
	initdb
but if you have LANG or other LC_xxx values in your environment,
it's possible that there is some conflict.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <1935.1063807618@sss.pgh.pa.us>
Permalink:  ../1935.1063807618@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1935.1063807618@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, krjg@devo.se, dev@archonet.com
  Subject: Re: Sort order with spaces?
  In-Reply-To: <1935.1063807618@sss.pgh.pa.us>

* 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