postgresql/src/backend/utils
Nathan Bossart c758119e5b Allow changing autovacuum_max_workers without restarting.
This commit introduces a new parameter named
autovacuum_worker_slots that controls how many autovacuum worker
slots to reserve during server startup.  Modifying this new
parameter's value does require a server restart, but it should
typically be set to the upper bound of what you might realistically
need to set autovacuum_max_workers.  With that new parameter in
place, autovacuum_max_workers can now be changed with a SIGHUP
(e.g., pg_ctl reload).

If autovacuum_max_workers is set higher than
autovacuum_worker_slots, a WARNING is emitted, and the server will
only start up to autovacuum_worker_slots workers at a given time.
If autovacuum_max_workers is set to a value less than the number of
currently-running autovacuum workers, the existing workers will
continue running, but no new workers will be started until the
number of running autovacuum workers drops below
autovacuum_max_workers.

Reviewed-by: Sami Imseih, Justin Pryzby, Robert Haas, Andres Freund, Yogesh Sharma
Discussion: https://postgr.es/m/20240410212344.GA1824549%40nathanxps13
2025-01-06 15:01:22 -06:00
..
activity Update copyright for 2025 2025-01-01 11:21:55 -05:00
adt flex code modernization: Replace YY_EXTRA_TYPE define with flex option 2025-01-06 09:47:58 +01:00
cache Update copyright for 2025 2025-01-01 11:21:55 -05:00
error Update copyright for 2025 2025-01-01 11:21:55 -05:00
fmgr Update copyright for 2025 2025-01-01 11:21:55 -05:00
hash Update copyright for 2025 2025-01-01 11:21:55 -05:00
init Allow changing autovacuum_max_workers without restarting. 2025-01-06 15:01:22 -06:00
mb Update copyright for 2025 2025-01-01 11:21:55 -05:00
misc Allow changing autovacuum_max_workers without restarting. 2025-01-06 15:01:22 -06:00
mmgr Update copyright for 2025 2025-01-01 11:21:55 -05:00
resowner Update copyright for 2025 2025-01-01 11:21:55 -05:00
sort Update copyright for 2025 2025-01-01 11:21:55 -05:00
time Update copyright for 2025 2025-01-01 11:21:55 -05:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Update copyright for 2025 2025-01-01 11:21:55 -05:00
Gen_dummy_probes.pl Update copyright for 2025 2025-01-01 11:21:55 -05:00
Gen_fmgrtab.pl Update copyright for 2025 2025-01-01 11:21:55 -05:00
generate-errcodes.pl Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
postprocess_dtrace.sed Update copyright for 2025 2025-01-01 11:21:55 -05:00
probes.d Update copyright for 2025 2025-01-01 11:21:55 -05:00