[sisyphus] Postgresql не стартует

Andrew Nazarkin =?iso-8859-1?q?gnomik_=CE=C1_mtv=2Eru?=
Ср Май 21 17:46:02 MSD 2003


В сообщении от 21 Май 2003 17:29 Епифанов Сергей написал:
> В сообщении от 21 Май 2003 17:02 Andrew Nazarkin написал:
> > > touch /etc/localtime
> >
> > Нифига ((
>
> Давайте смотреть в файл /etc/chroot.d/postgresql.*
>
> Есть ли у вас такие файлы:
..skip..

Да, дело, похоже в локали. 
initdb от юзера постгрес выдает вот такие ошибки:

initdb --locale=C
The files belonging to this database system will be owned by user 
"postgres".
This user must also own the server process.

The database cluster will be initialized with locale C.

Fixing permissions on existing directory /var/lib/pgsql/data... ok
creating directory /var/lib/pgsql/data/base... ok
creating directory /var/lib/pgsql/data/global... ok
creating directory /var/lib/pgsql/data/pg_xlog... ok
creating directory /var/lib/pgsql/data/pg_clog... ok
creating template1 database in /var/lib/pgsql/data/base/1... Failed to 
initialize lc_messages to ''
ok
creating configuration files... ok
initializing pg_shadow... Failed to initialize lc_messages to ''
ok
enabling unlimited row size for system tables... Failed to initialize 
lc_messages to ''
ok
initializing pg_depend... Failed to initialize lc_messages to ''
ok
creating system views... Failed to initialize lc_messages to ''
ok
loading pg_description... Failed to initialize lc_messages to ''
ok
creating conversions... Failed to initialize lc_messages to ''
ok
setting privileges on built-in objects... Failed to initialize 
lc_messages to ''
ok
vacuuming database template1... Failed to initialize lc_messages to ''
ok
copying template1 to template0... Failed to initialize lc_messages to ''

Под тем же юзеом postgres:

-bash-2.05b$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE=ru_RU.KOI8-R
LC_NUMERIC=ru_RU.KOI8-R
LC_TIME=ru_RU.KOI8-R
LC_COLLATE=ru_RU.KOI8-R
LC_MONETARY=ru_RU.KOI8-R
LC_MESSAGES=ru_RU.KOI8-R
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=

Буду разбираться с локалью...

-- 
With Best Regards
Andrew N. Nazarkin






Подробная информация о списке рассылки Sisyphus