*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.31 1997/02/14 04:17:21 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.32 1997/04/23 18:02:43 scrappy Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
*/
if (IsUnderPostmaster == false) {
puts("\nPOSTGRES backend interactive interface");
- puts("$Revision: 1.31 $ $Date: 1997/02/14 04:17:21 $");
+ puts("$Revision: 1.32 $ $Date: 1997/04/23 18:02:43 $");
}
/* ----------------
return 1;
}
-#ifdef HAVE_RUSAGE
+#ifdef HAVE_GETRUSAGE
#include "rusagestub.h"
-#else /* HAVE_RUSAGE */
+#else /* HAVE_GETRUSAGE */
#include <sys/resource.h>
-#endif /* HAVE_RUSAGE */
+#endif /* HAVE_GETRUSAGE */
struct rusage Save_r;
struct timeval Save_t;
(long int) user.tv_usec,
(long int) sys.tv_sec,
(long int) sys.tv_usec);
-#ifndef HAVE_RUSAGE
+#ifndef HAVE_GETRUSAGE
fprintf(StatFp,
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
r.ru_inblock - Save_r.ru_inblock,
r.ru_nvcsw - Save_r.ru_nvcsw,
r.ru_nivcsw - Save_r.ru_nivcsw,
r.ru_nvcsw, r.ru_nivcsw);
-#endif /* HAVE_RUSAGE */
+#endif /* HAVE_GETRUSAGE */
fprintf(StatFp, "! postgres usage stats:\n");
PrintBufferUsage(StatFp);
/* DisplayTupleCount(StatFp); */