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
1107531c
Commit
1107531c
authored
Jul 31, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename pid function to backend_pid().
parent
f67cb719
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
doc/src/sgml/monitoring.sgml
doc/src/sgml/monitoring.sgml
+10
-2
src/backend/utils/adt/pgstatfuncs.c
src/backend/utils/adt/pgstatfuncs.c
+2
-2
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+3
-3
No files found.
doc/src/sgml/monitoring.sgml
View file @
1107531c
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.
7 2002/03/22 19:20:14 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.
8 2002/07/31 01:49:12 momjian
Exp $
-->
<chapter id="monitoring">
...
...
@@ -480,11 +480,19 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
</entry>
</row>
<row>
<entry><function>backend_pid</function>()</entry>
<entry><type>integer</type></entry>
<entry>
Process ID of current backend
</entry>
</row>
<row>
<entry><function>pg_stat_get_backend_pid</function>(<type>integer</type>)</entry>
<entry><type>integer</type></entry>
<entry>
P
ID of backend proces
s
P
rocess ID of all backend processe
s
</entry>
</row>
...
...
src/backend/utils/adt/pgstatfuncs.c
View file @
1107531c
...
...
@@ -19,7 +19,7 @@ extern Datum pg_stat_get_blocks_fetched(PG_FUNCTION_ARGS);
extern
Datum
pg_stat_get_blocks_hit
(
PG_FUNCTION_ARGS
);
extern
Datum
pg_stat_get_backend_idset
(
PG_FUNCTION_ARGS
);
extern
Datum
pg_stat_get_backend_my
pid
(
PG_FUNCTION_ARGS
);
extern
Datum
backend_
pid
(
PG_FUNCTION_ARGS
);
extern
Datum
pg_stat_get_backend_pid
(
PG_FUNCTION_ARGS
);
extern
Datum
pg_stat_get_backend_dbid
(
PG_FUNCTION_ARGS
);
extern
Datum
pg_stat_get_backend_userid
(
PG_FUNCTION_ARGS
);
...
...
@@ -213,7 +213,7 @@ pg_stat_get_backend_idset(PG_FUNCTION_ARGS)
Datum
pg_stat_get_backend_my
pid
(
PG_FUNCTION_ARGS
)
backend_
pid
(
PG_FUNCTION_ARGS
)
{
PG_RETURN_INT32
(
MyProcPid
);
}
...
...
src/include/catalog/pg_proc.h
View file @
1107531c
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.24
7 2002/07/31 00:40:40
momjian Exp $
* $Id: pg_proc.h,v 1.24
8 2002/07/31 01:49:13
momjian Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
...
...
@@ -2703,8 +2703,8 @@ DATA(insert OID = 1935 ( pg_stat_get_blocks_hit PGNSP PGUID 12 f f t f s 1 20
DESCR
(
"Statistics: Number of blocks found in cache"
);
DATA
(
insert
OID
=
1936
(
pg_stat_get_backend_idset
PGNSP
PGUID
12
f
f
t
t
s
0
23
""
pg_stat_get_backend_idset
-
_null_
));
DESCR
(
"Statistics: Currently active backend IDs"
);
DATA
(
insert
OID
=
2026
(
pg_stat_get_backend_mypid
PGNSP
PGUID
12
f
f
t
f
s
0
23
""
pg_stat_get_backend_my
pid
-
_null_
));
DESCR
(
"Statistics:
My
backend ID"
);
DATA
(
insert
OID
=
2026
(
backend_pid
PGNSP
PGUID
12
f
f
t
f
s
0
23
""
backend_
pid
-
_null_
));
DESCR
(
"Statistics:
Current
backend ID"
);
DATA
(
insert
OID
=
1937
(
pg_stat_get_backend_pid
PGNSP
PGUID
12
f
f
t
f
s
1
23
"23"
pg_stat_get_backend_pid
-
_null_
));
DESCR
(
"Statistics: PID of backend"
);
DATA
(
insert
OID
=
1938
(
pg_stat_get_backend_dbid
PGNSP
PGUID
12
f
f
t
f
s
1
26
"23"
pg_stat_get_backend_dbid
-
_null_
));
...
...
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