Re: Usage of ProcessConfigfile in SIGHUP_Handler - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Usage of ProcessConfigfile in SIGHUP_Handler
Date
Msg-id ZsdWMMsy_qBzyecI@nathan
Whole thread Raw
In response to Usage of ProcessConfigfile in SIGHUP_Handler  (Lakshmi Narayana Velayudam <dev.narayana.v@gmail.com>)
Responses Re: Usage of ProcessConfigfile in SIGHUP_Handler
List pgsql-hackers
On Thu, Aug 22, 2024 at 05:37:13PM +0530, Lakshmi Narayana Velayudam wrote:
> Later I have seen almost
> all postgresql processes/bgworkers use signal handler to set a
> variable *ConfigReloadPending
> *which will later be read in main code to process guc changes but for
> postmaster *ProcessConfigfile *is being called from signal handler itself
> which intern has memory allocation related code (non-async safe code). Is
> it safe to do this?

I think this is no longer true as of v16, thanks to commit 7389aad [0].

[0] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=7389aad

-- 
nathan



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: MultiXact\SLRU buffers configuration
Next
From: Nathan Bossart
Date:
Subject: Re: Proposal for Updating CRC32C with AVX-512 Algorithm.