Re: No AVworkers when PM_RECOVERY_CONSISTENT

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: No AVworkers when PM_RECOVERY_CONSISTENT
Дата
Msg-id 3500.1252163216@sss.pgh.pa.us
обсуждение исходный текст
Ответ на No AVworkers when PM_RECOVERY_CONSISTENT  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> When pmState == PM_RECOVERY_CONSISTENT we run
> SignalAutovacWorkers(SIGTERM);
> at normal shutdown

> This currently does nothing, but since there aren't ever going to be any
> AVworkers at this time we should be explicitly skipping this. That
> should avoid misunderstanding the code and avoid any future side
> effects.

The code is trying to signal every child that exists.  By that logic we
should have a lot more conditionals to try to avoid signaling process
that "shouldn't" exist in the current PM state --- eg, the following
line where the AV launcher is signaled.  I don't think it's going to
be an improvement in either readability or robustness.
        regards, tom lane


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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: ECPG patchset
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Non-Solaris dtrace support is disabled in 8.4!!!?