mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
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
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user