1- <!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.34 2006/06/19 01:51:21 tgl Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.35 2006/06/27 19:07:50 momjian Exp $ -->
22
33<chapter id="monitoring">
44 <title>Monitoring Database Activity</title>
@@ -170,12 +170,11 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
170170
171171 <note>
172172 <para>
173- Since the parameters <varname>stats_command_string</varname>,
174- <varname>stats_block_level</varname>, and
173+ Since the parameters <varname>stats_block_level</varname>, and
175174 <varname>stats_row_level</varname> default to <literal>false</>,
176175 very few statistics are collected in the default
177- configuration. Enablingone or more of these configuration
178- variables will significantlyenhance the amount of useful data
176+ configuration. Enablingeither of these configuration
177+ variables will significantlyincrease the amount of useful data
179178 produced by the statistics facilities, at the expense of
180179 additional run-time overhead.
181180 </para>
@@ -241,9 +240,9 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
241240 process <acronym>ID</>, user OID, user name, current query, time at
242241 which the current query began execution, time at which the process
243242 was started, and client's address and port number. The columns
244- that report data on the current query areonly availableif the
243+ that report data on the current query are availableunless the
245244 parameter <varname>stats_command_string</varname> has been
246- turnedon . Furthermore, these columnsread as null unless the
245+ turnedoff . Furthermore, these columnsare only visible if the
247246 user examining the view is a superuser or the same as the user
248247 owning the process being reported on.
249248 </entry>
@@ -635,10 +634,10 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
635634 <entry><literal><function>pg_stat_get_backend_activity</function>(<type>integer</type>)</literal></entry>
636635 <entry><type>text</type></entry>
637636 <entry>
638- Active command of the given server process (null if the
639- current user isnot a superusernor the same user as that of
640- the session being queried, or
641- <varname>stats_command_string</varname> isnot on)
637+ Active command of the given server process, but only if the
638+ current user is a superuseror the same user as that of
639+ the session being queried (and
640+ <varname>stats_command_string</varname> is on)
642641 </entry>
643642 </row>
644643
@@ -647,10 +646,10 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
647646 <entry><type>timestamp with time zone</type></entry>
648647 <entry>
649648 The time at which the given server process' currently
650- executing query was started (null if the
651- current user isnot a superusernor the same user as that of
652- the session being queried, or
653- <varname>stats_command_string</varname> isnot on)
649+ executing query was started, but only if the
650+ current user is a superuseror the same user as that of
651+ the session being queried (and
652+ <varname>stats_command_string</varname> is on)
654653 </entry>
655654 </row>
656655