pg_ctl {start,restart,reload} bad handling of stdout file descriptor

Поиск
Список
Период
Сортировка
От Luis Menina
Тема pg_ctl {start,restart,reload} bad handling of stdout file descriptor
Дата
Msg-id CAC4O4H-xHChwKuKdN15SruDHxf7gQ7aNJ598_1FwtAYWPiv1oA@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_ctl {start,restart,reload} bad handling of stdout file descriptor  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

I've been trying to run some pg_ctl command inside a python script,
and saw that some of them where deadlocking. It seems that the
commands that start postgres handle stdout in a way that that block
the caller. Redirecting stdout to /dev/null or to a file using the -l
option allow me to workaround the problem, but fixing it upstream
would be nice.

Here's a simple python program that reproduces the problem, and should deadlock.
Customize your data path first, of course.

Regards,
--
Luis MENINA / Software Engineer
Web: www.anevia.com
Anevia: 1 rue René Anjolvy, 94250 Gentilly, France

Вложения

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

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: [GENERAL] ON_ERROR_ROLLBACK
Следующее
От: Luis Menina
Дата:
Сообщение: Re: pg_ctl {start,restart,reload} bad handling of stdout file descriptor