diff options
author | Andres Freund <andres@anarazel.de> | 2022-08-22 20:22:50 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-08-22 20:22:50 -0700 |
commit | 0c679464a837079acc75ff1d45eaa83f79e05690 (patch) | |
tree | 0cf8f58398c6d924bd450b459eb17722ea361728 /src/include/miscadmin.h | |
parent | cd063344fb801a90a40923a5b8aefe4eb8d80762 (diff) | |
download | postgresql-0c679464a837079acc75ff1d45eaa83f79e05690.tar.gz postgresql-0c679464a837079acc75ff1d45eaa83f79e05690.zip |
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
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r-- | src/include/miscadmin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 067b729d5a5..7c41b279942 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -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; |