Re: initdb --pwfile /dev/zero

2021-09-17 Thread Tom Lane
Andres Freund writes: > On 2021-09-17 14:48:42 -0400, Tom Lane wrote: >> 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. > Well, '\0' can be classified as the end of a line i

Re: initdb --pwfile /dev/zero

2021-09-17 Thread Andres Freund
Hi, On 2021-09-17 14:48:42 -0400, Tom Lane wrote: > Andres Freund 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 usin

Re: initdb --pwfile /dev/zero

2021-09-17 Thread Tom Lane
Andres Freund 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 end

initdb --pwfile /dev/zero

2021-09-17 Thread Andres Freund
Hi, 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_a