diff options
| author | Andres Freund | 2021-08-05 02:29:45 +0000 |
|---|---|---|
| committer | Andres Freund | 2021-08-05 19:03:30 +0000 |
| commit | 5aa4a9d2077fa902b4041245805082fec6be0648 (patch) | |
| tree | ff04bb68b20c2480ffb55ab49214a830249cb63b /src/include/bootstrap | |
| parent | 50017f77722b8b998ead5ca6fdb0b821fe7a34d2 (diff) | |
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
Diffstat (limited to 'src/include/bootstrap')
| -rw-r--r-- | src/include/bootstrap/bootstrap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/bootstrap/bootstrap.h b/src/include/bootstrap/bootstrap.h index 8290d4c6c49..0f8762afaf8 100644 --- a/src/include/bootstrap/bootstrap.h +++ b/src/include/bootstrap/bootstrap.h @@ -15,6 +15,7 @@ #define BOOTSTRAP_H #include "nodes/execnodes.h" +#include "miscadmin.h" /* @@ -32,7 +33,8 @@ extern Form_pg_attribute attrtypes[MAXATTR]; extern int numattr; -extern void AuxiliaryProcessMain(int argc, char *argv[]) pg_attribute_noreturn(); +extern void BootstrapModeMain(int argc, char *argv[]) pg_attribute_noreturn(); +extern void AuxiliaryProcessMain(AuxProcType auxtype) pg_attribute_noreturn(); extern void closerel(char *name); extern void boot_openrel(char *name); |
