Re: putting a bgworker to rest

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: putting a bgworker to rest
Дата
Msg-id 20130423145943.GL2169@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на putting a bgworker to rest  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: putting a bgworker to rest  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund wrote:
> Hi all,
>
> I noticed the need to simply stop a bgworker after its work is done but
> still have it restart in unusual circumstances like a crash.
> Obviously I can just have it enter a loop where it checks its latch and
> such, but that seems a bit pointless.
>
> Would it make sense to add an extra return value or such for that?

KaiGai also requested some more flexibility in the stop timing and
shutdown sequence.  I understand the current design that workers are
always on can be a bit annoying.

How would postmaster know when to restart a worker that stopped?

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Couple of issues with pg_xlogdump
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Proposal to add --single-row to psql