On Fri, Nov 13, 2020 at 12:22 PM Heikki Linnakangas <hlinn...@iki.fi> wrote:
> On 12/11/2020 15:17, Daniel Gustafsson wrote: > >> On 5 Oct 2020, at 14:14, Heikki Linnakangas <hlinn...@iki.fi> wrote: > >> I would expect the checksums worker to be automatically started at > postmaster startup. Can we make that happen? > > > > A dynamic background worker has to be registered from a regular backend, > so > > it's not entirely clear to me where in startup processing that would take > > place. Do you have any good suggestions? > > Could you launch it from the startup process, in StartupXLOG()? > Does it have to be dynamic? > If it's not dynamic, you can't start it from a regular backend can you? So then you'd need a restart for it to happen? As for launching it from the startup process I don't know, that might be a viable path. The code specifically explains why it's not possible to launch it from the postmaster, but I don't see anything that would make it impossible from the startup process. -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>