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.
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);
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;
B_STARTUP,
B_WAL_RECEIVER,
B_WAL_SENDER,
- B_WAL_WRITER
+ B_WAL_WRITER,
+ B_PGXL_CLUSTER_MONITOR,
+ B_PGXL_POOLER
} BackendType;