Re: Proper way to reload config files in backend SIGHUP handler

2018-05-04 Thread Mike Palmiotto
On 05/04/2018 09:35 AM, Michael Paquier wrote: > On Fri, May 04, 2018 at 12:47:09AM -0400, Mike Palmiotto wrote: >> I don't seem to have any problem catching the SIGHUP in my extension >> without > BackgroundWorkerUnblockSignals a la: >> >> pqsignal_sighup(SIGHUP, sighup_handler); > > I am pretty

Re: Proper way to reload config files in backend SIGHUP handler

2018-05-04 Thread Michael Paquier
On Fri, May 04, 2018 at 12:47:09AM -0400, Mike Palmiotto wrote: > I don't seem to have any problem catching the SIGHUP in my extension > without > BackgroundWorkerUnblockSignals a la: > > pqsignal_sighup(SIGHUP, sighup_handler); I am pretty sure you mean s/pqsignal_sighup/pqsignal/. > static voi

Re: Proper way to reload config files in backend SIGHUP handler

2018-05-03 Thread Mike Palmiotto
On 05/03/2018 08:43 PM, Euler Taveira wrote: > 2018-05-03 19:25 GMT-03:00 Mike Palmiotto : >> I am writing a PostgreSQL extension and need to reload certain >> extension-managed files whenever the postmaster is reloaded/receives SIGHUP, >> but cannot find anything that looks like a standard way to

Re: Proper way to reload config files in backend SIGHUP handler

2018-05-03 Thread Euler Taveira
2018-05-03 19:25 GMT-03:00 Mike Palmiotto : > I am writing a PostgreSQL extension and need to reload certain > extension-managed files whenever the postmaster is reloaded/receives SIGHUP, > but cannot find anything that looks like a standard way to do that. Is there a > hook or recommended method o

Proper way to reload config files in backend SIGHUP handler

2018-05-03 Thread Mike Palmiotto
All, I am writing a PostgreSQL extension and need to reload certain extension-managed files whenever the postmaster is reloaded/receives SIGHUP, but cannot find anything that looks like a standard way to do that. Is there a hook or recommended method or something else I am missing? Thanks, -- M