Change references to NEED_RUSAGE to HAVE_RUSAGE
Pointed out by:" Tatsuo Ishii <t-ishii@sra.co.jp>
This commit is contained in:
parent
a1019b6ca7
commit
9cabea224c
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.28 1997/01/27 22:37:52 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.29 1997/02/03 04:43:31 scrappy Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* this is the "main" module of the postgres backend and
|
* this is the "main" module of the postgres backend and
|
||||||
@ -1283,7 +1283,7 @@ PostgresMain(int argc, char *argv[])
|
|||||||
*/
|
*/
|
||||||
if (IsUnderPostmaster == false) {
|
if (IsUnderPostmaster == false) {
|
||||||
puts("\nPOSTGRES backend interactive interface");
|
puts("\nPOSTGRES backend interactive interface");
|
||||||
puts("$Revision: 1.28 $ $Date: 1997/01/27 22:37:52 $");
|
puts("$Revision: 1.29 $ $Date: 1997/02/03 04:43:31 $");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------
|
/* ----------------
|
||||||
@ -1481,11 +1481,11 @@ PostgresMain(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#ifdef NEED_RUSAGE
|
#ifdef HAVE_RUSAGE
|
||||||
#include "rusagestub.h"
|
#include "rusagestub.h"
|
||||||
#else /* NEED_RUSAGE */
|
#else /* HAVE_RUSAGE */
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif /* NEED_RUSAGE */
|
#endif /* HAVE_RUSAGE */
|
||||||
|
|
||||||
struct rusage Save_r;
|
struct rusage Save_r;
|
||||||
struct timeval Save_t;
|
struct timeval Save_t;
|
||||||
@ -1549,7 +1549,7 @@ ShowUsage(void)
|
|||||||
(long int) user.tv_usec,
|
(long int) user.tv_usec,
|
||||||
(long int) sys.tv_sec,
|
(long int) sys.tv_sec,
|
||||||
(long int) sys.tv_usec);
|
(long int) sys.tv_usec);
|
||||||
#ifndef NEED_RUSAGE
|
#ifndef HAVE_RUSAGE
|
||||||
fprintf(StatFp,
|
fprintf(StatFp,
|
||||||
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
|
"!\t%ld/%ld [%ld/%ld] filesystem blocks in/out\n",
|
||||||
r.ru_inblock - Save_r.ru_inblock,
|
r.ru_inblock - Save_r.ru_inblock,
|
||||||
@ -1575,7 +1575,7 @@ ShowUsage(void)
|
|||||||
r.ru_nvcsw - Save_r.ru_nvcsw,
|
r.ru_nvcsw - Save_r.ru_nvcsw,
|
||||||
r.ru_nivcsw - Save_r.ru_nivcsw,
|
r.ru_nivcsw - Save_r.ru_nivcsw,
|
||||||
r.ru_nvcsw, r.ru_nivcsw);
|
r.ru_nvcsw, r.ru_nivcsw);
|
||||||
#endif /* NEED_RUSAGE */
|
#endif /* HAVE_RUSAGE */
|
||||||
fprintf(StatFp, "! postgres usage stats:\n");
|
fprintf(StatFp, "! postgres usage stats:\n");
|
||||||
PrintBufferUsage(StatFp);
|
PrintBufferUsage(StatFp);
|
||||||
/* DisplayTupleCount(StatFp); */
|
/* DisplayTupleCount(StatFp); */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user