Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1107531

Browse files
committed
Rename pid function to backend_pid().
1 parentf67cb71 commit1107531

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

‎doc/src/sgml/monitoring.sgml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.7 2002/03/22 19:20:14 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.8 2002/07/31 01:49:12 momjian Exp $
33
-->
44

55
<chapter id="monitoring">
@@ -480,11 +480,19 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
480480
</entry>
481481
</row>
482482

483+
<row>
484+
<entry><function>backend_pid</function>()</entry>
485+
<entry><type>integer</type></entry>
486+
<entry>
487+
Process ID of current backend
488+
</entry>
489+
</row>
490+
483491
<row>
484492
<entry><function>pg_stat_get_backend_pid</function>(<type>integer</type>)</entry>
485493
<entry><type>integer</type></entry>
486494
<entry>
487-
PIDof backendprocess
495+
Process IDofallbackendprocesses
488496
</entry>
489497
</row>
490498

‎src/backend/utils/adt/pgstatfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern Datum pg_stat_get_blocks_fetched(PG_FUNCTION_ARGS);
1919
externDatumpg_stat_get_blocks_hit(PG_FUNCTION_ARGS);
2020

2121
externDatumpg_stat_get_backend_idset(PG_FUNCTION_ARGS);
22-
externDatumpg_stat_get_backend_mypid(PG_FUNCTION_ARGS);
22+
externDatumbackend_pid(PG_FUNCTION_ARGS);
2323
externDatumpg_stat_get_backend_pid(PG_FUNCTION_ARGS);
2424
externDatumpg_stat_get_backend_dbid(PG_FUNCTION_ARGS);
2525
externDatumpg_stat_get_backend_userid(PG_FUNCTION_ARGS);
@@ -213,7 +213,7 @@ pg_stat_get_backend_idset(PG_FUNCTION_ARGS)
213213

214214

215215
Datum
216-
pg_stat_get_backend_mypid(PG_FUNCTION_ARGS)
216+
backend_pid(PG_FUNCTION_ARGS)
217217
{
218218
PG_RETURN_INT32(MyProcPid);
219219
}

‎src/include/catalog/pg_proc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_proc.h,v 1.247 2002/07/3100:40:40 momjian Exp $
10+
* $Id: pg_proc.h,v 1.248 2002/07/3101:49:13 momjian Exp $
1111
*
1212
* NOTES
1313
* The script catalog/genbki.sh reads this file and generates .bki
@@ -2703,8 +2703,8 @@ DATA(insert OID = 1935 ( pg_stat_get_blocks_hitPGNSP PGUID 12 f f t f s 1 20
27032703
DESCR("Statistics: Number of blocks found in cache");
27042704
DATA(insertOID=1936 (pg_stat_get_backend_idsetPGNSPPGUID12fftts023""pg_stat_get_backend_idset-_null_ ));
27052705
DESCR("Statistics: Currently active backend IDs");
2706-
DATA(insertOID=2026 (pg_stat_get_backend_mypidPGNSPPGUID12fftfs023""pg_stat_get_backend_mypid-_null_ ));
2707-
DESCR("Statistics:My backend ID");
2706+
DATA(insertOID=2026 (backend_pidPGNSPPGUID12fftfs023""backend_pid-_null_ ));
2707+
DESCR("Statistics:Current backend ID");
27082708
DATA(insertOID=1937 (pg_stat_get_backend_pidPGNSPPGUID12fftfs123"23"pg_stat_get_backend_pid-_null_ ));
27092709
DESCR("Statistics: PID of backend");
27102710
DATA(insertOID=1938 (pg_stat_get_backend_dbidPGNSPPGUID12fftfs126"23"pg_stat_get_backend_dbid-_null_ ));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp