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 $ -->
2
2
3
3
<chapter id="monitoring">
4
4
<title>Monitoring Database Activity</title>
@@ -170,12 +170,11 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
170
170
171
171
<note>
172
172
<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
175
174
<varname>stats_row_level</varname> default to <literal>false</>,
176
175
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
179
178
produced by the statistics facilities, at the expense of
180
179
additional run-time overhead.
181
180
</para>
@@ -241,9 +240,9 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
241
240
process <acronym>ID</>, user OID, user name, current query, time at
242
241
which the current query began execution, time at which the process
243
242
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
245
244
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
247
246
user examining the view is a superuser or the same as the user
248
247
owning the process being reported on.
249
248
</entry>
@@ -635,10 +634,10 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
635
634
<entry><literal><function>pg_stat_get_backend_activity</function>(<type>integer</type>)</literal></entry>
636
635
<entry><type>text</type></entry>
637
636
<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)
642
641
</entry>
643
642
</row>
644
643
@@ -647,10 +646,10 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
647
646
<entry><type>timestamp with time zone</type></entry>
648
647
<entry>
649
648
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)
654
653
</entry>
655
654
</row>
656
655