Re: Failed to initialize lc_messages to '' - Mailing list pgsql-admin

From Tom Lane
Subject Re: Failed to initialize lc_messages to ''
Date
Msg-id 7755.1047929762@sss.pgh.pa.us
Whole thread Raw
In response to Failed to initialize lc_messages to ''  (jan.berka@dreger.de (Jan B.))
Responses Re: Failed to initialize lc_messages to ''
List 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 by date:

Previous
From: "Babak Badaei"
Date:
Subject: max_connections limit
Next
From: Jeremy Buchmann
Date:
Subject: Re: Failed to initialize lc_messages to ''