aio: Fix configuration reload in IO workers.
authorThomas Munro <tmunro@postgresql.org>
Sat, 12 Jul 2025 04:20:11 +0000 (16:20 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sat, 12 Jul 2025 04:33:02 +0000 (16:33 +1200)
commitb8e1f2d96bb99ad3528d035861bd311b9f8eb5a9
treeb27cae198d2b8fad52e2b51a847e01fd327a8a59
parent177c1f05933890e0da82841bddf1ae4d1e085612
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@gmail.com>
Discussion: http://postgr.es/m/sh5uqe4a4aqo5zkkpfy5fobe2rg2zzouctdjz7kou4t74c66ql%40yzpkxb7pgoxf
src/backend/storage/aio/method_worker.c