Skip to content

Commit d7859a9

Browse files
committed
Rename backend_pid to pg_backend_pid, move docs to monitoring section.
1 parent 9218689 commit d7859a9

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/04 03:53:10 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.107 2002/08/04 19: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
extern Datum pg_stat_get_blocks_hit(PG_FUNCTION_ARGS);
2020

2121
extern Datum pg_stat_get_backend_idset(PG_FUNCTION_ARGS);
22-
extern Datum backend_pid(PG_FUNCTION_ARGS);
22+
extern Datum pg_backend_pid(PG_FUNCTION_ARGS);
2323
extern Datum pg_stat_get_backend_pid(PG_FUNCTION_ARGS);
2424
extern Datum pg_stat_get_backend_dbid(PG_FUNCTION_ARGS);
2525
extern Datum pg_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)