mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Save_r, Save_t should be static not global variables.
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.374 2003/10/18 22:59:08 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.375 2003/10/19 23:43:51 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* this is the "main" module of the postgres backend and
|
* this is the "main" module of the postgres backend and
|
||||||
@ -2659,7 +2659,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
|||||||
if (!IsUnderPostmaster)
|
if (!IsUnderPostmaster)
|
||||||
{
|
{
|
||||||
puts("\nPOSTGRES backend interactive interface ");
|
puts("\nPOSTGRES backend interactive interface ");
|
||||||
puts("$Revision: 1.374 $ $Date: 2003/10/18 22:59:08 $\n");
|
puts("$Revision: 1.375 $ $Date: 2003/10/19 23:43:51 $\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -3090,8 +3090,8 @@ PostgresMain(int argc, char *argv[], const char *username)
|
|||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif /* HAVE_GETRUSAGE */
|
#endif /* HAVE_GETRUSAGE */
|
||||||
|
|
||||||
struct rusage Save_r;
|
static struct rusage Save_r;
|
||||||
struct timeval Save_t;
|
static struct timeval Save_t;
|
||||||
|
|
||||||
void
|
void
|
||||||
ResetUsage(void)
|
ResetUsage(void)
|
||||||
|
Reference in New Issue
Block a user