Re: pgsql: Consistently test for in-use shared memory.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Consistently test for in-use shared memory. |
| Дата | |
| Msg-id | 30005.1555378495@sss.pgh.pa.us обсуждение |
| Ответ на | Re: pgsql: Consistently test for in-use shared memory. (Noah Misch <noah@leadboat.com>) |
| Список | pgsql-committers |
Noah Misch <noah@leadboat.com> writes:
> 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.
Ah, good, that's safer than what I was imagining.
> I probably worried that
> "postgres --single" would not tolerate that, but it seems to.
Sure. EOF-on-stdin is the standard way to end a standalone-backend
session. This fix means it'd have zero queries to execute rather
than one, but I'd be entirely willing to call it a backend bug if that
didn't work.
The more important point of course is that we must correctly detect
test failure if the backend doesn't complain. But since the test
explicitly looks for a particular error message text, that seems
fine.
regards, tom lane
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера