Re: Should vacuum process config file reload more often

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема Re: Should vacuum process config file reload more often
Дата
Msg-id CAD21AoCebMU2TjRvoCZe4gH0dGc_3JRTOBstoJF_k4fXOfCUbw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Should vacuum process config file reload more often  (Andres Freund <andres@anarazel.de>)
Ответы Re: Should vacuum process config file reload more often  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Tue, Feb 28, 2023 at 10:21 AM Andres Freund <andres@anarazel.de> wrote:
>
> Hi,
>
> On 2023-02-27 23:11:53 +0900, Masahiko Sawada wrote:
> > As far as I know there are not such GUC parameters in the core but
> > there might be in third-party table AM and index AM extensions.
>
> We already reload in a pretty broad range of situations, so I'm not sure
> there's a lot that could be unsafe that isn't already.
>
>
> > Also, I'm concerned that allowing to change any GUC parameters during
> > vacuum/analyze could be a foot-gun in the future. When modifying
> > vacuum/analyze-related codes, we have to consider the case where any GUC
> > parameters could be changed during vacuum/analyze.
>
> What kind of scenario are you thinking of?

For example, I guess we will need to take care of changes of
maintenance_work_mem. Currently we initialize the dead tuple space at
the beginning of lazy vacuum, but perhaps we would need to
enlarge/shrink it based on the new value?

Regards,

-- 
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: kuroda.keisuke@nttcom.co.jp
Дата:
Сообщение: Re: pg_rewind: warn when checkpoint hasn't happened after promotion
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: pg_upgrade and logical replication