Re: Should vacuum process config file reload more often

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Should vacuum process config file reload more often
Дата
Msg-id CA+TgmoYshCZF4a0k4R3eOwn08xXqSdfmPxzGxS0RKBVmKAByGg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Should vacuum process config file reload more often  (Melanie Plageman <melanieplageman@gmail.com>)
Список pgsql-hackers
On Wed, Apr 5, 2023 at 3:44 PM Melanie Plageman
<melanieplageman@gmail.com> wrote:
> VacuumUpdateCosts() also calls AutoVacuumUpdateCostLimit(), so this will
> happen if a config reload is pending the next time vacuum_delay_point()
> is called (which is pretty often -- roughly once per block vacuumed but
> definitely more than once per table).
>
> Relevant code is at the top of vacuum_delay_point():
>
>     if (ConfigReloadPending && IsAutoVacuumWorkerProcess())
>     {
>         ConfigReloadPending = false;
>         ProcessConfigFile(PGC_SIGHUP);
>         VacuumUpdateCosts();
>     }

Yeah, that all makes sense, and I did see that logic, but I'm
struggling to reconcile it with what that comment says.

Maybe I'm just confused about what that comment is trying to explain.

--
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: How should we wait for recovery conflict resolution?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: on placeholder entries in view rule action query's range table