mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
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: https://postgr.es/m/sh5uqe4a4aqo5zkkpfy5fobe2rg2zzouctdjz7kou4t74c66ql%40yzpkxb7pgoxf
This commit is contained in:
parent
177c1f0593
commit
b8e1f2d96b
1 changed files with 6 additions and 0 deletions
|
|
@ -575,6 +575,12 @@ IoWorkerMain(const void *startup_data, size_t startup_data_len)
|
|||
}
|
||||
|
||||
CHECK_FOR_INTERRUPTS();
|
||||
|
||||
if (ConfigReloadPending)
|
||||
{
|
||||
ConfigReloadPending = false;
|
||||
ProcessConfigFile(PGC_SIGHUP);
|
||||
}
|
||||
}
|
||||
|
||||
error_context_stack = errcallback.previous;
|
||||
|
|
|
|||
Loading…
Reference in a new issue