Re: Review: Extra Daemons / bgworker

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Review: Extra Daemons / bgworker
Дата
Msg-id CA+U5nM+1TreKRirScCZgEjYG4jw0VFxboN-c16KAxLFMbo9xKA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Review: Extra Daemons / bgworker  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
On 5 December 2012 22:22, Andres Freund <andres@2ndquadrant.com> wrote:
> On 2012-12-05 19:03:44 -0300, Alvaro Herrera wrote:
>> Simon Riggs wrote:
>> > Prefer
>> > BgWorkerStart_ConsistentState to be renamed to BgWorkerRun_InHotStandby
>> > BgWorkerStart_RecoveryFinished to be renamed to BgWorkerRun_InNormalMode
>> >
>> > presumably a process will shutdown if (BgWorkerRun_InHotStandby &&
>> > !BgWorkerRun_InNormalMode)
>>
>> Hmm, no, I haven't considered that.  You mean that a bgworker that
>> specifies to start at BgWorkerStart_ConsistentState will stop once
>> normal mode is reached?  Currently they don't do that.  And since we
>> don't have the notion that workers stop working, it wouldn't work --
>> postmaster would start them back up immediately.
>
> I personally don't see too much demand for this from a use-case
> perspective. Simon, did you have anything in mind that made you ask
> this?

Just clarifying how it worked, for the docs; happy with the way it is.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Dumping an Extension's Script
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Dumping an Extension's Script