fix missing prototypes (and 'implicit declaration' warning)
authorTomas Vondra <[email protected]>
Tue, 1 Mar 2016 03:45:56 +0000 (04:45 +0100)
committerPavan Deolasee <[email protected]>
Fri, 11 Mar 2016 06:29:18 +0000 (11:59 +0530)
src/backend/bootstrap/bootstrap.c
src/backend/rewrite/rewriteHandler.c
src/backend/storage/ipc/ipci.c
src/backend/utils/init/postinit.c
src/include/postmaster/clustermon.h
src/include/tcop/tcopprot.h

index 2a287ca3bebea5687abedc2aa6bd2a7075c128ed..6707724ddff1320574dc83a4f06cca95fa35d618 100644 (file)
@@ -49,6 +49,7 @@
 #ifdef PGXC
 #include "nodes/nodes.h"
 #include "pgxc/poolmgr.h"
+#include "postmaster/clustermon.h"
 #endif
 
 uint32         bootstrap_data_checksum_version = 0;            /* No checksum */
index e6ccd0290b94326ca6804dd65580f58d5633ed84..5ce3773df9aa496b222ac248e6212ceaecf90cb5 100644 (file)
@@ -14,6 +14,7 @@
 #include "postgres.h"
 
 #include "access/sysattr.h"
+#include "catalog/namespace.h"
 #include "catalog/pg_type.h"
 #include "commands/trigger.h"
 #include "foreign/fdwapi.h"
index 37df00803cc2eefee9bad41cc29850023fd4a423..4535a3eb82d1187e844465f398da0c8b64cfaf34 100644 (file)
@@ -27,6 +27,7 @@
 #include "pgstat.h"
 #ifdef PGXC
 #include "pgxc/nodemgr.h"
+#include "postmaster/clustermon.h"
 #endif
 #include "postmaster/autovacuum.h"
 #include "postmaster/clustermon.h"
index 13cd0ad51f9dae3f8f6a84a862837a1ea0cf5a2c..c7ae6815cc4c722507be4b8be0b2be427daf65d0 100644 (file)
@@ -39,6 +39,7 @@
 #include "pgstat.h"
 #ifdef XCP
 #include "pgxc/pgxc.h"
+#include "postmaster/clustermon.h"
 #endif
 #include "postmaster/autovacuum.h"
 #include "postmaster/clustermon.h"
index 953d6787ebbc8fbb2cbb322e3931cee7cf73a521..ca9dc1b304ff14ecf65da9d932c342ec8db3996c 100644 (file)
@@ -26,19 +26,17 @@ typedef struct
        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);
index 3a6812adebc890eb914e5dc26c15b57f43503e0b..c91fa848eb81516e6a3b55db023e5c07f075b0e5 100644 (file)
@@ -81,6 +81,7 @@ extern void PostgresMain(int argc, char *argv[],
                         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,