Bug 59522 - /etc/init.d/postgresql initdb Падает с ошибкой локали
Summary: /etc/init.d/postgresql initdb Падает с ошибкой локали
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: postgresql18-1C-server (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexei Takaseev
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-12 20:39 MSK by Блинов Денис Вячеславович
Modified: 2026-06-15 15:27 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Блинов Денис Вячеславович 2026-06-12 20:39:57 MSK
Версия пакета: postgresql18-1C-server-18.4-alt3.x86_64

При выполнении: /etc/init.d/postgresql initdb
ВАЖНО: ошибка при обращении к файлу "mchar": Нет такого файла или каталога дочерний процесс завершился с кодом возврата 1 initdb: удаление содержимого каталога данных "/var/lib/pgsql/data"


[root@server-11-1-x86-64-legacy-ext4-minimal-server ~]# locale -a | grep ru_RU
ru_RU
ru_RU.cp1251
ru_RU.ibm866
ru_RU.iso88595
ru_RU.koi8r
ru_RU.utf8
[root@server-11-1-x86-64-legacy-ext4-minimal-server ~]# locale | grep LANG
LANG=ru_RU.UTF-8

Использование:
LANG=ru_RU.utf8 LC_ALL=ru_RU.utf8 /etc/init.d/postgresql initdb
или
LANG=C LC_ALL=C /etc/init.d/postgresql initdb
Не помогает:
VAZHNO:  oshibka pri obrashhenii k fajlu "mchar": Net takogo fajla ili kataloga
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql/data"

В p11 корректная инцилизация.
Comment 1 Блинов Денис Вячеславович 2026-06-12 20:48:51 MSK
Установка postgresql18-1C-contrib решает проблему.
Comment 2 Repository Robot 2026-06-15 15:27:02 MSK
postgresql18-1C-18.4-alt4 -> sisyphus:

Mon Jun 15 2026 Alexei Takaseev <taf@altlinux> 18.4-alt4
- Move extention auto_dump, auto_explain, fasttrun, fulleq, mchar,
  pg_stat_statements, pg_wait_sampling from -contrib to -server (ALT #59522)
- Fix run tests. Use 1 cpu