process startup: Separate out BootstrapModeMain from AuxiliaryProcessMain.
authorAndres Freund <andres@anarazel.de>
Thu, 5 Aug 2021 02:29:45 +0000 (19:29 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 5 Aug 2021 19:03:30 +0000 (12:03 -0700)
commit5aa4a9d2077fa902b4041245805082fec6be0648
treeff04bb68b20c2480ffb55ab49214a830249cb63b
parent50017f77722b8b998ead5ca6fdb0b821fe7a34d2
process startup: Separate out BootstrapModeMain from AuxiliaryProcessMain.

There practically was no shared code between the two, once all the ifs are
removed. And it was quite confusing that aux processes weren't actually
started by the call to AuxiliaryProcessMain() in main().

There's more to do, AuxiliaryProcessMain() should move out of bootstrap.c, and
BootstrapModeMain() shouldn't use/be part of AuxProcType.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-By: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de
src/backend/bootstrap/bootstrap.c
src/backend/main/main.c
src/backend/postmaster/postmaster.c
src/include/bootstrap/bootstrap.h