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

Commitd7859a9

Browse files
committed
Rename backend_pid to pg_backend_pid, move docs to monitoring section.
1 parent9218689 commitd7859a9

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.106 2002/08/0403:53:10 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.107 2002/08/0419:51:30 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -4353,11 +4353,6 @@ SELECT NULLIF(value, '(none)') ...
43534353
<entry><type>name[]</type></entry>
43544354
<entry>names of schemas in search path optionally including implicit schemas</entry>
43554355
</row>
4356-
<row>
4357-
<entry><function>backend_pid</function>()</entry>
4358-
<entry><type>integer</type></entry>
4359-
<entry>process ID of the session backend</entry>
4360-
</row>
43614356
</tbody>
43624357
</tgroup>
43634358
</table>

‎doc/src/sgml/monitoring.sgml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.9 2002/07/31 02:27:29 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/monitoring.sgml,v 1.10 2002/08/04 19:51:30 momjian Exp $
33
-->
44

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

483+
<row>
484+
<entry><function>pg_backend_pid</function>()</entry>
485+
<entry><type>integer</type></entry>
486+
<entry>
487+
Process ID of the attached 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>

‎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-
externDatumbackend_pid(PG_FUNCTION_ARGS);
22+
externDatumpg_backend_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-
backend_pid(PG_FUNCTION_ARGS)
216+
pg_backend_pid(PG_FUNCTION_ARGS)
217217
{
218218
PG_RETURN_INT32(MyProcPid);
219219
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp