|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.79 2010/04/15 20:56:13 petere Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.80 2010/04/26 19:56:55 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="monitoring">
|
4 | 4 | <title>Monitoring Database Activity</title>
|
|
50 | 50 | $ ps auxww | grep ^postgres
|
51 | 51 | postgres 960 0.0 1.1 6104 1480 pts/1 SN 13:17 0:00 postgres -i
|
52 | 52 | postgres 963 0.0 1.1 7084 1472 pts/1 SN 13:17 0:00 postgres: writer process
|
53 |
| -postgres 965 0.0 1.1 6152 1512 pts/1 SN 13:17 0:00 postgres: stats collector process |
| 53 | +postgres 965 0.0 1.1 6152 1512 pts/1 SN 13:17 0:00 postgres: stats collector process |
54 | 54 | postgres 998 0.0 2.3 6532 2992 pts/1 SN 13:18 0:00 postgres: tgl runbug 127.0.0.1 idle
|
55 | 55 | postgres 1003 0.0 2.4 6532 3128 pts/1 SN 13:19 0:00 postgres: tgl regression [local] SELECT waiting
|
56 | 56 | postgres 1016 0.1 2.4 6532 3080 pts/1 SN 13:19 0:00 postgres: tgl regression [local] idle in transaction
|
@@ -165,7 +165,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
|
165 | 165 | </para>
|
166 | 166 |
|
167 | 167 | <para>
|
168 |
| - The statistics collector communicates with the backends needing |
| 168 | + The statistics collector communicates with the backends needing |
169 | 169 | information (including autovacuum) through temporary files.
|
170 | 170 | These files are stored in the <filename>pg_stat_tmp</filename> subdirectory.
|
171 | 171 | When the postmaster shuts down, a permanent copy of the statistics
|
@@ -235,9 +235,9 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
|
235 | 235 | <entry><structname>pg_stat_activity</></entry>
|
236 | 236 | <entry>One row per server process, showing database OID, database
|
237 | 237 | name, process <acronym>ID</>, user OID, user name, application name,
|
238 |
| - current query, query's waiting status, time at which the current |
239 |
| - transaction and current query began execution, time at which the |
240 |
| - process was started, and client's address and port number. |
| 238 | + client's address and port number, times at which the server process, |
| 239 | + current transaction, and current query began execution, process's waiting |
| 240 | + status, and text of the current query. |
241 | 241 | The columns that report data on the current query are available unless
|
242 | 242 | the parameter <varname>track_activities</varname> has been turned off.
|
243 | 243 | Furthermore, these columns are only visible if the user examining
|
@@ -408,7 +408,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
|
408 | 408 | Beginning in <productname>PostgreSQL</productname> 8.1, indexes can be
|
409 | 409 | used either directly or via <quote>bitmap scans</>. In a bitmap scan
|
410 | 410 | the output of several indexes can be combined via AND or OR rules;
|
411 |
| - so it is difficult to associate individual heap row fetches |
| 411 | + so it is difficult to associate individual heap row fetches |
412 | 412 | with specific indexes when a bitmap scan is used. Therefore, a bitmap
|
413 | 413 | scan increments the
|
414 | 414 | <structname>pg_stat_all_indexes</>.<structfield>idx_tup_read</>
|
@@ -695,7 +695,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
|
695 | 695 | <entry>
|
696 | 696 | Returns a record of information about the backend with the specified pid, or
|
697 | 697 | one record for each active backend in the system if <symbol>NULL</symbol> is
|
698 |
| - specified. The fields returned are the same as in the |
| 698 | + specified. The fields returned are a subset of those in the |
699 | 699 | <structname>pg_stat_activity</structname> view.
|
700 | 700 | </entry>
|
701 | 701 | </row>
|
|
0 commit comments