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
7a7a9b1a
Commit
7a7a9b1a
authored
Apr 23, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change HAVE_RUSAGE to HAVE_GETRUSAGE, which is the more appropriate
parent
7a2b417d
Changes
1
Show 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 @
7a7a9b1a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.3
1 1997/02/14 04:17:21 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.3
2 1997/04/23 18:02:43 scrappy
Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -1270,7 +1270,7 @@ PostgresMain(int argc, char *argv[])
...
@@ -1270,7 +1270,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.3
1 $ $Date: 1997/02/14 04:17:21
$"
);
puts
(
"$Revision: 1.3
2 $ $Date: 1997/04/23 18:02:43
$"
);
}
}
/* ----------------
/* ----------------
...
@@ -1467,11 +1467,11 @@ PostgresMain(int argc, char *argv[])
...
@@ -1467,11 +1467,11 @@ PostgresMain(int argc, char *argv[])
return
1
;
return
1
;
}
}
#ifdef HAVE_RUSAGE
#ifdef HAVE_
GET
RUSAGE
#include "rusagestub.h"
#include "rusagestub.h"
#else
/* HAVE_RUSAGE */
#else
/* HAVE_
GET
RUSAGE */
#include <sys/resource.h>
#include <sys/resource.h>
#endif
/* HAVE_RUSAGE */
#endif
/* HAVE_
GET
RUSAGE */
struct
rusage
Save_r
;
struct
rusage
Save_r
;
struct
timeval
Save_t
;
struct
timeval
Save_t
;
...
@@ -1535,7 +1535,7 @@ ShowUsage(void)
...
@@ -1535,7 +1535,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 HAVE_RUSAGE
#ifndef HAVE_
GET
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
,
...
@@ -1561,7 +1561,7 @@ ShowUsage(void)
...
@@ -1561,7 +1561,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
/* HAVE_RUSAGE */
#endif
/* HAVE_
GET
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