From 4a25bc145ad5d05da6f01c00bae0f576e9e17115 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 17 Feb 2011 16:03:28 -0500 Subject: Add client_hostname field to pg_stat_activity. Peter Eisentraut, reviewed by Steve Singer, Alvaro Herrera, and me. --- doc/src/sgml/monitoring.sgml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 58e3459e678..2dc1bfc19c7 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -245,14 +245,17 @@ postgres: user database host pg_stat_activitypg_stat_activity One row per server process, showing database OID, database name, process ID, user OID, user name, application name, - client's address and port number, times at which the server process, - current transaction, and current query began execution, process's waiting - status, and text of the current query. + client's address, hostname (if available), and port number, times at + which the server process, current transaction, and current query began + execution, process's waiting status, and text of the current query. The columns that report data on the current query are available unless the parameter track_activities has been turned off. Furthermore, these columns are only visible if the user examining the view is a superuser or the same as the user owning the process - being reported on. + being reported on. The client's hostname will be available only if + is set or if the user's hostname + needed to be looked up during pg_hba.conf + processing. @@ -297,14 +300,18 @@ postgres: user database host pg_stat_replicationpg_stat_replication One row per WAL sender process, showing process ID, - user OID, user name, application name, client's address and port number, - time at which the server process began execution, and the current WAL - sender state and transaction log location. In addition, the standby - reports the last transaction log position it received and wrote, the last - position it flushed to disk, and the last position it replayed, and this - information is also displayed here. The columns detailing what exactly - the connection is doing are only visible if the user examining the view - is a superuser. + user OID, user name, application name, client's address, hostname + (if available) and port number, time at which the server process began + execution, and the current WAL sender state and transaction log + location. In addition, the standby reports the last transaction log + position it received and wrote, the last position it flushed to disk, + and the last position it replayed, and this information is also + displayed here. The columns detailing what exactly the connection is + doing are only visible if the user examining the view is a superuser. + The client's hostname will be available only if + is set or if the user's hostname + needed to be looked up during pg_hba.conf + processing. -- cgit v1.2.3