From: Bruce Momjian Date: Sun, 4 Aug 2002 19:51:30 +0000 (+0000) Subject: Rename backend_pid to pg_backend_pid, move docs to monitoring section. X-Git-Tag: REL7_3~1017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7859a9570f59586ec27e7d799ea8346041ee0a4;p=postgresql Rename backend_pid to pg_backend_pid, move docs to monitoring section. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 4703e04d0d..dfebb45e1b 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -4353,11 +4353,6 @@ SELECT NULLIF(value, '(none)') ... name[] names of schemas in search path optionally including implicit schemas - - backend_pid() - integer - process ID of the session backend - diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index c3b7eb4402..393b832ad4 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -1,5 +1,5 @@ @@ -480,6 +480,14 @@ postgres: user database host + + pg_backend_pid() + integer + + Process ID of the attached backend + + + pg_stat_get_backend_pid(integer) integer diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c index cc1f648892..2d7054327a 100644 --- a/src/backend/utils/adt/pgstatfuncs.c +++ b/src/backend/utils/adt/pgstatfuncs.c @@ -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 backend_pid(PG_FUNCTION_ARGS); +extern Datum pg_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 -backend_pid(PG_FUNCTION_ARGS) +pg_backend_pid(PG_FUNCTION_ARGS) { PG_RETURN_INT32(MyProcPid); }