Re: pgsql: Consistently test for in-use shared memory.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgsql: Consistently test for in-use shared memory. |
| Дата | |
| Msg-id | 28362.1555375956@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pgsql: Consistently test for in-use shared memory. (Noah Misch <noah@leadboat.com>) |
| Ответы |
Re: pgsql: Consistently test for in-use shared memory.
|
| Список | pgsql-committers |
Noah Misch <noah@leadboat.com> writes:
> On Mon, Apr 15, 2019 at 08:08:48PM -0400, Tom Lane wrote:
>> I interpret this as "the single-user backend exited before we could stuff
>> 'SELECT 1 + 1' down the pipe to it, and the Perl script is not expecting
>> to get a write failure there".
> Perhaps I should write the 'SELECT 1 + 1' to a regular file and redirect input
> from that file.
Yeah, that was the first idea that occurred to me as well.
Kinda grotty, but ...
Another idea is to shove the problem off on a sub-shell, that is run
echo SELECT 1 + 1 | postgres --single ...
regards, tom lane
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера