#ifdef PGXC
#include "nodes/nodes.h"
#include "pgxc/poolmgr.h"
+#include "postmaster/clustermon.h"
#endif
uint32 bootstrap_data_checksum_version = 0; /* No checksum */
#include "postgres.h"
#include "access/sysattr.h"
+#include "catalog/namespace.h"
#include "catalog/pg_type.h"
#include "commands/trigger.h"
#include "foreign/fdwapi.h"
#include "pgstat.h"
#ifdef PGXC
#include "pgxc/nodemgr.h"
+#include "postmaster/clustermon.h"
#endif
#include "postmaster/autovacuum.h"
#include "postmaster/clustermon.h"
#include "pgstat.h"
#ifdef XCP
#include "pgxc/pgxc.h"
+#include "postmaster/clustermon.h"
#endif
#include "postmaster/autovacuum.h"
#include "postmaster/clustermon.h"
GlobalTransactionId gtm_recent_global_xmin;
} ClusterMonitorCtlData;
+extern void ClusterMonitorShmemInit(void);
extern Size ClusterMonitorShmemSize(void);
/* Status inquiry functions */
extern bool IsClusterMonitorProcess(void);
/* Functions to start cluster monitor process, called from postmaster */
+int ClusterMonitorInit(void);
extern int StartClusterMonitor(void);
GlobalTransactionId ClusterMonitorGetGlobalXmin(void);
void ClusterMonitorSetGlobalXmin(GlobalTransactionId xmin);
-extern GlobalTransactionId ClusterMonitorGetReportingGlobalXmin(void);
-
-Size ClusterMonitorShmemSize(void);
-void ClusterMonitorShmemInit(void);
#ifdef EXEC_BACKEND
extern void ClusterMonitorIAm(void);
const char *username) pg_attribute_noreturn();
extern long get_stack_depth_rlimit(void);
extern void ResetUsage(void);
+extern void ResetUsageCommon(struct rusage *save_r, struct timeval *save_t);
extern void ResetUsageGeneric(struct rusage *save_r, struct timeval *save_t);
extern void ShowUsage(const char *title);
extern void ShowUsageCommon(const char *title, struct rusage *save_r,