summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index c0e43643c2..142d781344 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -49,6 +49,15 @@
#include "utils/elog.h"
#include "utils/palloc.h"
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/time.h>
+#include <sys/resource.h>
+#endif
+
+#ifndef HAVE_GETRUSAGE
+#include "rusagestub.h"
+#endif
+
/* ----------------------------------------------------------------
* Section 1: variable-length datatypes (TOAST support)
* ----------------------------------------------------------------
@@ -723,4 +732,10 @@ extern void ExceptionalCondition(const char *conditionName,
//#define PGXC_COORD // for PGXC coordinator compiling
//#define PGXC_DATANODE // for PGXC data node compiling
+
+extern void ResetUsageCommon(struct rusage *save_r, struct timeval *save_t);
+extern void ResetUsage(void);
+extern void ShowUsageCommon(const char *title, struct rusage *save_r, struct
+ timeval *save_t);
+
#endif /* POSTGRES_H */