Re: allow changing autovacuum_max_workers without restarting
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, "Imseih (AWS), Sami" <simseih@amazon.com>, Justin Pryzby <pryzby@telsasoft.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2025-01-06T21:50:24Z
Lists: pgsql-hackers
On Mon, Jan 06, 2025 at 04:29:37PM -0500, Tom Lane wrote: > Unsurprisingly, this has completely broken buildfarm member sawshark: > you added 13 new semaphores to the system's default requirements, > and we only had headroom for about 4 (cf. 38da05346). Oh wow, I missed that the defaults were so low on some systems. > Now maybe we should just abandon the notion that we ought to be > able to start up under OpenBSD/NetBSD's tiny default value of SEMMNS. > If so I'd be inclined to go revert 38da05346, at least in HEAD. > But I kind of wonder whether this feature actually brings value > commensurate with causing installation problems on real-world OSes. I'm obviously biased, but I think it would be unfortunate to block features like this one because of low settings that would otherwise be unsuitable for any reasonable production workload. If we do want to at least support check-world on these systems, another option could be to simply lower the default of autovacuum_worker_slots to 7 (or maybe lower). Of course, that only helps until the next time more semaphores are required, but that's not a new problem. -- nathan
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