process startup: Separate out BootstrapModeMain from AuxiliaryProcessMain.

Andres Freund <andres@anarazel.de>

Commit: 5aa4a9d2077fa902b4041245805082fec6be0648
Author: Andres Freund <andres@anarazel.de>
Date: 2021-08-05T19:03:30Z
Releases: 15.0
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

Files

Discussion