Re: Maximum password length

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Maximum password length
Дата
Msg-id 797097.1599173195@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Maximum password length  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> Alvaro proposes nearby that we ought to have a src/common/ function
> to slurp an indefinitely long line from a file [1].  If we do that,
> it'd be entirely reasonable to make this code use that.  So maybe
> the right comment is "XXX FIXME later".

Actually, on further thought, the obviously right thing to do here
is to refactor simple_prompt into two functions: the inner one is
basically like fgets except it returns a malloc'd, variable-size
string, and then the outer one does the other stuff simple_prompt needs
such as prompting and opening /dev/tty.  The inner function would
serve initdb's need directly, and it would also have uses elsewhere,
as per the other thread.

I'll go make that happen.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: report expected contrecord size
Следующее
От: Anastasia Lubennikova
Дата:
Сообщение: Re: history file on replica and double switchover