summaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorAndres Freund2021-08-05 19:17:31 +0000
committerAndres Freund2021-08-05 19:18:15 +0000
commitf8dd4ecb0b7fc3420e199021375e622815cd326f (patch)
treeca13c83c356607ceb7f21c7d006bf43ca9cf947e /src/include/miscadmin.h
parent0a692109dcc73178962069addf7478ac89950e4d (diff)
process startup: Remove bootstrap / checker modes from AuxProcType.
Neither is actually initialized as an auxiliary process, so it does not really make sense to reserve a PGPROC etc for them. This keeps checker mode implemented by exiting partway through bootstrap mode. That might be worth changing at some point, perhaps if we ever extend checker mode to be a more general tool. 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/miscadmin.h')
-rw-r--r--src/include/miscadmin.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index 1b7422d6366..2e2e9a364a7 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -427,9 +427,7 @@ extern ProcessingMode Mode;
typedef enum
{
NotAnAuxProcess = -1,
- CheckerProcess = 0,
- BootstrapProcess,
- StartupProcess,
+ StartupProcess = 0,
BgWriterProcess,
ArchiverProcess,
CheckpointerProcess,
@@ -441,7 +439,6 @@ typedef enum
extern AuxProcType MyAuxProcType;
-#define AmBootstrapProcess() (MyAuxProcType == BootstrapProcess)
#define AmStartupProcess() (MyAuxProcType == StartupProcess)
#define AmBackgroundWriterProcess() (MyAuxProcType == BgWriterProcess)
#define AmArchiverProcess() (MyAuxProcType == ArchiverProcess)