Re: allow changing autovacuum_max_workers without restarting
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org,
Nathan Bossart <nathandbossart@gmail.com>,
"Imseih (AWS),
Sami" <simseih@amazon.com>,
Justin Pryzby <pryzby@telsasoft.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2025-01-06T22:36:17Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes: > How about trying the higher setting first in initdb? On any sane system that won't cost anything because it'll succeed with the higher value. That might be a good compromise. You'd have to think about how it should interact with initdb's probes for workable values of max_connections. My first thought about that is to have initdb set autovacuum_worker_slots to max_connections / 8 or thereabouts as it works down the list of max_connections values to try. Or you could do something more complicated, but I don't see a reason to make it too complex. regards, tom lane
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