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