Re: Default Locale in initdb

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Default Locale in initdb
Дата
Msg-id 20040602113028.F56302@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Default Locale in initdb  (pgsql@mohawksoft.com)
Список 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 по дате отправления:

Предыдущее
От: Paul Ramsey
Дата:
Сообщение: Re: Default Locale in initdb
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Default Locale in initdb