Re: Checks in RegisterBackgroundWorker.() - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Checks in RegisterBackgroundWorker.()
Date
Msg-id CA+hUKG+ydx1AH3m9grgvMA1cx8PNWVfZig2QZFfyo+U_iT2syQ@mail.gmail.com
Whole thread Raw
In response to Checks in RegisterBackgroundWorker.()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Checks in RegisterBackgroundWorker.()
List pgsql-hackers
On Fri, Aug 25, 2023 at 3:15 AM Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> In summary, RegisterBackgroundWorker() is doing some questionable and
> useless work, when a shared preload library is loaded to a backend
> process in EXEC_BACKEND mode.

Yeah.  When I was working on 7389aad6 ("Use WaitEventSet API for
postmaster's event loop."), I also tried to move all of the
postmaster's state variables into PostmasterContext (since the only
reason for that scope was the signal handler code that is now gone),
and I hit a variant of this design problem.  I wonder if that would be
unblocked by this...

https://www.postgresql.org/message-id/CA+hUKGKH_RPAo=NgPfHKj--565aL1qiVpUGdWt1_pmJehY+dmw@mail.gmail.com



pgsql-hackers by date:

Previous
From: Gurjeet Singh
Date:
Subject: psql --no-connect option
Next
From: Andres Freund
Date:
Subject: Re: initdb caching during tests