Type: | integer |
Default: | 3 |
Min: | 1 |
Max: | 262143 |
Context: | postmaster |
Restart: | true |
Specifies the maximum number of autovacuum processes (other than the autovacuum launcher) that may be running at any one time. The default is three. This parameter can only be set at server start.
Recommendations
If you have an installation with many tables (100's to 1000's) or with some tables which autovacuum takes hours to process, you may want to add additional autovacuum workers so that multiple tables can be vacuumed at once. Be conservative, though, as each autovacuum worker will utilize a separate CPU core, memory and I/O.
On StackOverflow
On pgsql-hackers
- Re: allow changing autovacuum_max_workers without restarting
- Re: scalability bottlenecks with (many) partitions (and more)
- remove check hooks for GUCs that contribute to MaxBackends
- Re: Regression tests fail on OpenBSD due to low semmns value
- Re: remove check hooks for GUCs that contribute to MaxBackends