Re: pgsql: Consistently test for in-use shared memory.

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: pgsql: Consistently test for in-use shared memory.
Дата
Msg-id 20190416011830.GB3296237@rfd.leadboat.com
обсуждение исходный текст
Ответ на Re: pgsql: Consistently test for in-use shared memory.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Consistently test for in-use shared memory.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Mon, Apr 15, 2019 at 09:01:45PM -0400, Tom Lane wrote:
> Noah Misch <noah@leadboat.com> writes:
> >> Perhaps I should write the 'SELECT 1 + 1' to a regular file and redirect input
> >> from that file.
> 
> Actually ... we don't need to run a query at all do we?

No.  We expect never to run one; it was there for the unexpected case of
"postgres --single" startup succeeding.  I pushed a change to close the stdin
of "postgres --single" instead of writing to it.  I probably worried that
"postgres --single" would not tolerate that, but it seems to.



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

Предыдущее
От: Noah Misch
Дата:
Сообщение: pgsql: Don't write to stdin of a test process that could have alreadye
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Consistently test for in-use shared memory.