Re: Failed to initialize lc_messages to ''

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Failed to initialize lc_messages to ''
Дата
Msg-id 7755.1047929762@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Failed to initialize lc_messages to ''  (jan.berka@dreger.de (Jan B.))
Ответы Re: Failed to initialize lc_messages to ''  (Jeremy Buchmann <jeremy@wellsgaming.com>)
Список pgsql-admin
jan.berka@dreger.de (Jan B.) writes:
> when I try to execute initdb I get the following errors:

> The database cluster will be initialized with locales:
>     COLLATE:  POSIX     CTYPE:   en_US  MESSAGES: en_US
>     MONETARY: en_US     NUMERIC: en_US  TIME:     en_US

> creating template1 database in /opt/pgsql/data/base/1... Failed to
> initialize lc_messages to ''

What platform is this?  You should complain to the relevant people about
their broken locale definitions.  If they're going to set en_US as the
default locale then it darn well ought to work in all locale categories.

In the meantime, try
    export LC_ALL=C
(or equivalent syntax if you use a C shell) before you run initdb.
You'll be better off running Postgres in C locale anyway.

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Babak Badaei"
Дата:
Сообщение: max_connections limit
Следующее
От: Jeremy Buchmann
Дата:
Сообщение: Re: Failed to initialize lc_messages to ''