summaryrefslogtreecommitdiff
path: root/src/include
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
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')
-rw-r--r--src/include/bootstrap/bootstrap.h2
-rw-r--r--src/include/miscadmin.h5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/include/bootstrap/bootstrap.h b/src/include/bootstrap/bootstrap.h
index a9829124104..7d3b78e3746 100644
--- a/src/include/bootstrap/bootstrap.h
+++ b/src/include/bootstrap/bootstrap.h
@@ -32,7 +32,7 @@ extern Form_pg_attribute attrtypes[MAXATTR];
extern int numattr;
-extern void BootstrapModeMain(int argc, char *argv[]) pg_attribute_noreturn();
+extern void BootstrapModeMain(int argc, char *argv[], bool check_only) pg_attribute_noreturn();
extern void closerel(char *name);
extern void boot_openrel(char *name);
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)