From 3b4ca4c0d9dd5807013a8404fc8283219f21f93b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 4 Apr 2003 03:03:54 +0000 Subject: Code review for pg_stat_get_backend_activity_start patch --- fix return type, make protection condition agree with recent change to pg_stat_get_backend_activity, clean up documentation. --- doc/src/sgml/monitoring.sgml | 20 ++++++++++---------- doc/src/sgml/runtime.sgml | 7 ++++--- 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 231a099cd1a..90a77d0a2c8 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -1,5 +1,5 @@ @@ -208,9 +208,9 @@ postgres: user database host stats_command_string has been turned on. - Furthermore, these columns can only be accessed by - superusers; or when the user examining the view is the same as the user - in the row; for others it reads as null. (Note that because of the + Furthermore, these columns read as null unless the user examining + the view is a superuser or the same as the user owning the process + being reported on. (Note that because of the collector's reporting delay, current query will only be up-to-date for long-running queries.) @@ -540,16 +540,16 @@ postgres: user database host pg_stat_get_backend_activity_start(integer) - text + timestamp with time zone - The time at which the specified backend process' currently - executing query was started (null if the current user is not a - superuser, or stats_command_string is not - on) + The time at which the given backend process' currently + executing query was started (null if the + current user is not a superuser nor the same user as that of + the session being queried, or + stats_command_string is not on) - pg_stat_reset() boolean diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 131a670b59a..9311aabfda3 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -1176,8 +1176,9 @@ SET ENABLE_SEQSCAN TO OFF; Enables the collection of statistics on the currently executing command of each session, along with the time at which that command began execution. This option is off by - default. Note that even when enabled, this information is only - visible to the superuser, so it should not represent a + default. Note that even when enabled, this information is not + visible to all users, only to superusers and the user owning + the session being reported on; so it should not represent a security risk. This data can be accessed via the pg_stat_activity system view; refer to for more information. -- cgit v1.2.3