Re: allow changing autovacuum_max_workers without restarting

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: "Imseih (AWS), Sami" <simseih@amazon.com>, Justin Pryzby <pryzby@telsasoft.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2025-01-06T15:52:48Z
Lists: pgsql-hackers

Attachments

On Fri, Dec 20, 2024 at 01:46:20PM -0600, Nathan Bossart wrote:
> I think I've been saying I would commit this since August, but now I am
> planning to do so first thing in the new year.  In v11 of the patch, I
> moved the initial startup WARNING to autovac_init() to avoid repeatedly
> logging when the launcher restarts (e.g., for emergency vacuums when the
> autovacuum parameter is disabled).  Otherwise, I just made a couple of
> cosmetic alterations and added a commit message.

This one needed a rebase after commit 2bdf1b2.

-- 
nathan

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Give up on running with NetBSD/OpenBSD's default semaphore settings.

  2. initdb: Do not report default autovacuum_worker_slots.

  3. Lower default value of autovacuum_worker_slots in initdb as needed.

  4. Allow changing autovacuum_max_workers without restarting.

  5. Reserve a PGPROC slot and semaphore for the slotsync worker process.

  6. Make archiver process an auxiliary process.

  7. Correct the formulas for System V IPC parameters SEMMNI and SEMMNS in docs.