Usage of ProcessConfigfile in SIGHUP_Handler - Mailing list pgsql-hackers

From Lakshmi Narayana Velayudam
Subject Usage of ProcessConfigfile in SIGHUP_Handler
Date
Msg-id CAA4pTn+2pUEJ_WVF493uBqdmqUQrdSpHJm41advrTnpbtDaN7A@mail.gmail.com
Whole thread Raw
Responses Re: Usage of ProcessConfigfile in SIGHUP_Handler
List pgsql-hackers
Hi pgsql hacker, 

Recently I have been trying to understand why GUC changes will be visible even though they are done in the signal handler as part of ProcessConfigfile (done in some extension code). 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?

Regards,
Narayana

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Redundant Result node
Next
From: Jelte Fennema-Nio
Date:
Subject: Re: On disable_cost