Re: allow changing autovacuum_max_workers without restarting
Sami Imseih <simseih@amazon.com>
From: "Imseih (AWS), Sami" <simseih@amazon.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2024-04-12T22:17:44Z
Lists: pgsql-hackers
>> 1/ We should emit a log when autovacuum_workers is set higher than the max. >> Hm. Maybe the autovacuum launcher could do that. Would it be better to use a GUC check_hook that compares the new value with the max allowed values and emits a WARNING ? autovacuum_max_workers already has a check_autovacuum_max_workers check_hook, which can be repurposed for this. In the POC patch, this check_hook is kept as-is, which will no longer make sense. >> 2/ should the name of the restart limit be "reserved_autovacuum_workers"? >> That's kind-of what I had in mind, although I think we might want to avoid >> the word "reserved" because it sounds a bit like reserved_connections >> and superuser_reserved_connections Yes, I agree. This can be confusing. >> "autovacuum_max_slots" or >> "autovacuum_max_worker_slots" might be worth considering, too. "autovacuum_max_worker_slots" is probably the best option because we should have "worker" in the name of the GUC. Regards, Sami
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Give up on running with NetBSD/OpenBSD's default semaphore settings.
- 810a8b1c8051 18.0 landed
-
initdb: Do not report default autovacuum_worker_slots.
- 2b49492eda3f 18.0 landed
-
Lower default value of autovacuum_worker_slots in initdb as needed.
- 6d01541960e2 18.0 landed
-
Allow changing autovacuum_max_workers without restarting.
- c758119e5bfb 18.0 landed
-
Reserve a PGPROC slot and semaphore for the slotsync worker process.
- 2bdf1b2a2efc 18.0 cited
-
Make archiver process an auxiliary process.
- d75288fb27b8 14.0 cited
-
Correct the formulas for System V IPC parameters SEMMNI and SEMMNS in docs.
- 597f7e3a6ec3 9.6.0 cited