Re: initdb --pwfile /dev/zero

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Devrim Gündüz <devrim(at)gunduz(dot)org>, pgsql-hackers(at)postgresql(dot)org, philip(dot)dub(at)microsoft(dot)com, jelte(dot)fennema(at)microsoft(dot)com
Subject: Re: initdb --pwfile /dev/zero
Date: 2021-09-17 20:09:16
Message-ID: 1404137.1631909356@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)anarazel(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2021-09-17 20:31:34 Re: prevent immature WAL streaming
Previous Message Andres Freund 2021-09-17 19:53:48 Re: initdb --pwfile /dev/zero