Re: Default Locale in initdb - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: Default Locale in initdb
Date
Msg-id 20040602113028.F56302@megazone.bigpanda.com
Whole thread Raw
In response to Default Locale in initdb  (pgsql@mohawksoft.com)
List pgsql-hackers
On Wed, 2 Jun 2004 pgsql@mohawksoft.com wrote:

> Is it me or has the default locale of created databases change at some point?
>
> Currently, on Linux, if one does not specify a locale, the locale is taken
> from the system environment and it is not "C."
>
> While I can both sides of a discussion, I think that choosing a "locale"
> without one being specified is a bad idea, even if it is the locale of the
> machine. The reason why it is a bad idea is that certain features of the
> database which only work correctly with a locale of "C" will not work by
> default.

The same is true with not taking the locale.  Other unix applications will
sort "correctly" without additional work, but PostgreSQL will not. The
LIKE optimization can be "fixed" in recent versions by adding an index and
leaving the locale, but getting correct sorting is going to require a
reinitdb.


pgsql-hackers by date:

Previous
From: Paul Ramsey
Date:
Subject: Re: Default Locale in initdb
Next
From: Andrew Dunstan
Date:
Subject: Re: Default Locale in initdb