diff options
author | Pavan Deolasee | 2017-06-14 06:36:23 +0000 |
---|---|---|
committer | Pavan Deolasee | 2017-06-14 06:36:23 +0000 |
commit | 67d631a347531d4fda6fb156ebc4090520c37ea9 (patch) | |
tree | ec713dcf9cfc22dfc893ff6fdb64cf3dcd04e21f | |
parent | d7e28951c4ade00832113449e15b9d1eef6995e3 (diff) |
Ensure that pgstat knowns about XL background processes.
XL has two background processes of its own, the cluster monitor process and the
pooler process. This patch ensures that pgstat is aware of these additional
built-in background processes.
-rw-r--r-- | src/backend/postmaster/pgstat.c | 12 | ||||
-rw-r--r-- | src/include/pgstat.h | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 008502e48c..288eb8efc6 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -2931,6 +2931,12 @@ pgstat_bestart(void) case WalReceiverProcess: beentry->st_backendType = B_WAL_RECEIVER; break; + case PoolerProcess: + beentry->st_backendType = B_PGXL_POOLER; + break; + case ClusterMonitorProcess: + beentry->st_backendType = B_PGXL_CLUSTER_MONITOR; + break; default: elog(FATAL, "unrecognized process type: %d", (int) MyAuxProcType); @@ -4121,6 +4127,12 @@ pgstat_get_backend_desc(BackendType backendType) case B_WAL_WRITER: backendDesc = "walwriter"; break; + case B_PGXL_POOLER: + backendDesc = "pooler"; + break; + case B_PGXL_CLUSTER_MONITOR: + backendDesc = "cluster monitor"; + break; } return backendDesc; diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 5f58effe6c..ca40c572db 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -711,7 +711,9 @@ typedef enum BackendType B_STARTUP, B_WAL_RECEIVER, B_WAL_SENDER, - B_WAL_WRITER + B_WAL_WRITER, + B_PGXL_CLUSTER_MONITOR, + B_PGXL_POOLER } BackendType; |