pgsql: aio: Fix configuration reload in IO workers.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: aio: Fix configuration reload in IO workers.
Date: 2025-07-12 04:38:40
Message-ID: E1uaS0V-005rpI-35@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

aio: Fix configuration reload in IO workers.

method_worker.c installed SignalHandlerForConfigReload, but it failed to
actually process reload requests. That hasn't yet produced any concrete
problem reports in terms of GUC changes it should have cared about in
v18, but it was inconsistent.

It did cause problems for a couple of patches in development that need
IO workers to react to ALTER SYSTEM + pg_reload_conf(). Fix extracted
from one of those patches.

Back-patch to 18.

Reported-by: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
Discussion: https://postgr.es/m/sh5uqe4a4aqo5zkkpfy5fobe2rg2zzouctdjz7kou4t74c66ql%40yzpkxb7pgoxf

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7d11f36e71a97603802c6a3dd019e206729a80c7

Modified Files
--------------
src/backend/storage/aio/method_worker.c | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2025-07-12 15:20:24 pgsql: Remove long-unused TransactionIdIsActive()
Previous Message Thomas Munro 2025-07-12 04:38:30 pgsql: aio: Fix configuration reload in IO workers.