Re: initdb --pwfile /dev/zero - Mailing list pgsql-hackers

From Tom Lane
Subject Re: initdb --pwfile /dev/zero
Date
Msg-id 1404137.1631909356@sss.pgh.pa.us
Whole thread Raw
In response to initdb --pwfile /dev/zero  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> 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 imo. So I don't think it'd
> require a line lenght limit.

Meh.  Those functions are specified to act like fgets(), which does not
think that \0 terminates a line AFAIK.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: right join with partitioned table crash
Next
From: Alvaro Herrera
Date:
Subject: Re: prevent immature WAL streaming