Re: problem with ORDER BY - Mailing list pgsql-general

From Tom Lane
Subject Re: problem with ORDER BY
Date
Msg-id 23826.1201879435@sss.pgh.pa.us
Whole thread Raw
In response to Re: problem with ORDER BY  (Nicolas KOWALSKI <niko@petole.dyndns.org>)
Responses Re: problem with ORDER BY
List pgsql-general
Nicolas KOWALSKI <niko@petole.dyndns.org> writes:
> Martijn van Oosterhout <kleptog@svana.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

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: arrays of floating point numbers / linear algebra operations into the DB
Next
From: Tom Lane
Date:
Subject: Re: pg_restore fails for postgis data dump