Re: initdb --pwfile /dev/zero

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: initdb --pwfile /dev/zero
Дата
Msg-id 1346090.1631904522@sss.pgh.pa.us
обсуждение исходный текст
Ответ на initdb --pwfile /dev/zero  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> A colleague tried PG 14 internally and it failed during cluster creation, when
> using the PGDG rpm packages. A bit of debugging shows that the problem is
> that the packaging script specifies the password using --pwfile /dev/zero.

> In 14+ this turns out to lead to an endless loop in pg_get_line_append().

Well, that's because that file will source an infinite amount of stuff.

> I think we still ought to make pg_get_line() a
> bit more resilient against '\0'?

I don't think '\0' is the problem.  The only fix for this would be to
re-introduce some fixed limit on how long a line we'll read, which
I'm not too thrilled about.  I think this is better classified as
user error.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: initdb --pwfile /dev/zero
Следующее
От: "Bossart, Nathan"
Дата:
Сообщение: Re: prevent immature WAL streaming