Re: Should vacuum process config file reload more often
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Melanie Plageman <melanieplageman@gmail.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2023-03-02T00:15:35Z
Lists: pgsql-hackers
Hi, On 2023-02-28 11:16:45 +0900, Masahiko Sawada wrote: > On Tue, Feb 28, 2023 at 10:21 AM Andres Freund <andres@anarazel.de> wrote: > > 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? I don't think we need to do anything about that initially, just because the config can be changed in a more granular way, doesn't mean we have to react to every change for the current operation. Greetings, Andres Freund
Commits
-
Fix assertion failure in heap_vacuum_rel
- 4a6603cd4650 16.0 landed
-
Fix vacuum_cost_delay check for balance calculation.
- cba3c8f6dd7f 12.15 landed
- bfac8f8bc4a4 16.0 landed
- b95f36f86131 13.11 landed
- 0e8e5e856cc3 14.8 landed
- 0319b306e87e 15.3 landed
- 0151d2c5f256 11.20 landed
-
Fix autovacuum cost debug logging
- a9781ae11ba2 16.0 landed
-
Refresh cost-based delay params more frequently in autovacuum
- 7d71d3dd080b 16.0 landed
-
Separate vacuum cost variables from GUCs
- a85c60a945ac 16.0 landed
-
Make vacuum failsafe_active globally visible
- 71a825194fd3 16.0 landed
-
Don't balance vacuum cost delay when per-table settings are in effect
- 1021bd6a89bc 9.5.0 cited