On Mon, Feb 25, 2019 at 1:29 PM Tom Lane <t...@sss.pgh.pa.us> wrote: > > Mike Palmiotto <mike.palmio...@crunchydata.com> writes: > <snip> > > > For some context, I'm trying to come up with a patch to set the > > process identifier (MyAuxProc/am_autovacuumworker/launcher, > > am_archiver, etc.) immediately after forking, > > Don't we do that already?
Kind of. The indicators are set in the Main functions after InitPostmasterChild and some other setup. In my little bit of digging I found InitPostmasterChild to be the best place for a centralized "early start-up hook." Is there a better place you can think of off-hand? > <snip> > > If memory serves, StartChildProcess already was an attempt to unify > the treatment of postmaster children. It's possible that another > round of unification would be productive, but I think you'll find > that there are random small differences in requirements that'd > make it messy. It kind of seemed like it, but I noticed the small differences in requirements, which made me a bit hesitant. I'll go ahead and see what I can do and submit the patch for consideration. -- Mike Palmiotto Software Engineer Crunchy Data Solutions https://crunchydata.com