Re: initdb fails to initialize data directory

Поиск
Список
Период
Сортировка
Искать
От
Alvaro Herrera
Тема
Re: initdb fails to initialize data directory
Дата
Msg-id
20180419133843.3iyxzjtgvx65b37u@alvherre.pgsql
Ответ на
Список
Дерево обсуждения
initdb fails to initialize data directory Nikhil Sontakke <nikhils@2ndquadrant.com>
Re: initdb fails to initialize data directory Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: initdb fails to initialize data directory Heikki Linnakangas <hlinnaka@iki.fi>
Re: initdb fails to initialize data directory Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: initdb fails to initialize data directory Michael Paquier <michael@paquier.xyz>
Nikhil Sontakke wrote:

> Intrigued, on digging down further, this is happening because we are
> not using a long enough buffer to accept the output of "postgres -V"
> in the find_other_exec() function. In our case, we had used
> --with-extra-version option with configure which caused the output of
> "postgres -V" to go a little beyond the current "line" variable size.
> This caused the strcmp to fail leading to initdb refusing to
> initialize any data directories at all.

Wow, that seems pretty silly nowadays.

Will push in a jiffy.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

В списке pgsql-hackers по дате отправления
От: Konstantin Knizhnik
Дата:
От: Amit Kapila
Дата:
FAQ