mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Add BackendType for standalone backends
All backends should have a BackendType to enable statistics reporting per BackendType. Add a new BackendType for standalone backends, B_STANDALONE_BACKEND (and alphabetize the BackendTypes). Both the bootstrap backend and single user mode backends will have BackendType B_STANDALONE_BACKEND. Author: Melanie Plageman <melanieplageman@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/CAAKRu_aaq33UnG4TXq3S-OSXGWj1QGf0sU%2BECH4tNwGFNERkZA%40mail.gmail.com
This commit is contained in:
@ -316,18 +316,19 @@ extern void SwitchBackToLocalLatch(void);
|
||||
typedef enum BackendType
|
||||
{
|
||||
B_INVALID = 0,
|
||||
B_ARCHIVER,
|
||||
B_AUTOVAC_LAUNCHER,
|
||||
B_AUTOVAC_WORKER,
|
||||
B_BACKEND,
|
||||
B_BG_WORKER,
|
||||
B_BG_WRITER,
|
||||
B_CHECKPOINTER,
|
||||
B_LOGGER,
|
||||
B_STANDALONE_BACKEND,
|
||||
B_STARTUP,
|
||||
B_WAL_RECEIVER,
|
||||
B_WAL_SENDER,
|
||||
B_WAL_WRITER,
|
||||
B_ARCHIVER,
|
||||
B_LOGGER,
|
||||
} BackendType;
|
||||
|
||||
extern PGDLLIMPORT BackendType MyBackendType;
|
||||
|
Reference in New Issue
Block a user