<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>59522</bug_id>
          
          <creation_ts>2026-06-12 20:39:57 +0300</creation_ts>
          <short_desc>/etc/init.d/postgresql initdb Падает с ошибкой локали</short_desc>
          <delta_ts>2026-06-15 15:27:02 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>postgresql18-1C-server</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Блинов Денис Вячеславович">blinovdv</reporter>
          <assigned_to name="Alexei Takaseev">taf</assigned_to>
          <cc>taf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>289419</commentid>
    <comment_count>0</comment_count>
    <who name="Блинов Денис Вячеславович">blinovdv</who>
    <bug_when>2026-06-12 20:39:57 +0300</bug_when>
    <thetext>Версия пакета: postgresql18-1C-server-18.4-alt3.x86_64

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


[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 &quot;mchar&quot;: Net takogo fajla ili kataloga
child process exited with exit code 1
initdb: removing contents of data directory &quot;/var/lib/pgsql/data&quot;

В p11 корректная инцилизация.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289420</commentid>
    <comment_count>1</comment_count>
    <who name="Блинов Денис Вячеславович">blinovdv</who>
    <bug_when>2026-06-12 20:48:51 +0300</bug_when>
    <thetext>Установка postgresql18-1C-contrib решает проблему.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>289491</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2026-06-15 15:27:02 +0300</bug_when>
    <thetext>postgresql18-1C-18.4-alt4 -&gt; sisyphus:

Mon Jun 15 2026 Alexei Takaseev &lt;taf@altlinux&gt; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>