agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Emit a warning when io_min_workers exceeds io_max_workers
Date: Mon, 06 Jul 2026 02:38:34 +0000
Message-ID: <E1wgZEA-001WjL-1g@gemulon.postgresql.org> (raw)
Emit a warning when io_min_workers exceeds io_max_workers
When io_min_workers is set strictly higher than io_max_workers, the
minimum has no effect since the pool will never grow past
io_max_workers. Previously this was silently accepted, which could
be confusing for users expecting at least io_min_workers workers to
always be running.
In order to avoid noise in the server logs, the following restrictions
are in place:
- The only process printing the WARNING is the IO worker with ID 0, on
startup and reload, which is we know the only process always running
when using IO workers.
- At reload, the message shows only if one of the bounds has changed.
Note that this commit reuses a log message updated by 7905416eef9b.
Author: Baji Shaik <baji.pgdev@gmail.com>
Reviewed-by: Tristan Partin <tristan@partin.io>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/CA+fm-RO_O7-XThg2qjj=ir35x9nOFbZYu07gttqAbM5T88QB4Q@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9d1188f29865e66c4196578501e74e8c815fba8d
Modified Files
--------------
src/backend/storage/aio/method_worker.c | 34 +++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Message-ID: <E1wgZEA-001WjL-1g@gemulon.postgresql.org>
Permalink: ../E1wgZEA-001WjL-1g@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wgZEA-001WjL-1g@gemulon.postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Emit a warning when io_min_workers exceeds io_max_workers
In-Reply-To: <E1wgZEA-001WjL-1g@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox