Re: problem with ORDER BY

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nicolas KOWALSKI <niko(at)petole(dot)dyndns(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem with ORDER BY
Date: 2008-02-01 15:23:55
Message-ID: 23826.1201879435@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nicolas KOWALSKI <niko(at)petole(dot)dyndns(dot)org> writes:
> Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
>> Show us your collation order:
>> show lc_collate;

> Here it is:

> mon=> show lc_collate;
> lc_collate
> -------------
> en_US.UTF-8
> (1 row)

The ordering you showed is correct according to en_US (and most other
non-C locales). The ordering you want is used in "C" locale.
Unfortunately you have to re-initdb to change the locale of a
database :-(
initdb --locale=C

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-02-01 15:36:52 Re: pg_restore fails for postgis data dump
Previous Message Enrico Sirola 2008-02-01 15:01:10 Re: arrays of floating point numbers / linear algebra operations into the DB