Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9cabea22
Commit
9cabea22
authored
Feb 03, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change references to NEED_RUSAGE to HAVE_RUSAGE
Pointed out by:" Tatsuo Ishii <t-ishii@sra.co.jp>
parent
a1019b6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+7
-7
No files found.
src/backend/tcop/postgres.c
View file @
9cabea22
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.2
8 1997/01/27 22:37:52
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.2
9 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[])
...
@@ -1283,7 +1283,7 @@ PostgresMain(int argc, char *argv[])
*/
*/
if
(
IsUnderPostmaster
==
false
)
{
if
(
IsUnderPostmaster
==
false
)
{
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"
\n
POSTGRES backend interactive interface"
);
puts
(
"$Revision: 1.2
8 $ $Date: 1997/01/27 22:37:52
$"
);
puts
(
"$Revision: 1.2
9 $ $Date: 1997/02/03 04:43:31
$"
);
}
}
/* ----------------
/* ----------------
...
@@ -1481,11 +1481,11 @@ PostgresMain(int argc, char *argv[])
...
@@ -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)
...
@@ -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)
...
@@ -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); */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment