1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-25 21:42:33 +03:00

Further doc cleanups from the pg_stat_activity changes

Fujii Masao
This commit is contained in:
Magnus Hagander 2012-01-20 12:23:26 +01:00
parent 6e3323d41d
commit a65023e7de
5 changed files with 8 additions and 8 deletions

View File

@ -7320,7 +7320,7 @@
<para> <para>
The <structfield>pid</structfield> column can be joined to the The <structfield>pid</structfield> column can be joined to the
<structfield>procpid</structfield> column of the <structfield>pid</structfield> column of the
<structname>pg_stat_activity</structname> view to get more <structname>pg_stat_activity</structname> view to get more
information on the session holding or waiting to hold each lock. information on the session holding or waiting to hold each lock.
Also, if you are using prepared transactions, the Also, if you are using prepared transactions, the

View File

@ -3857,7 +3857,7 @@ local0.* /var/log/postgresql
identifier from <literal>pg_stat_activity</>, use this query: identifier from <literal>pg_stat_activity</>, use this query:
<programlisting> <programlisting>
SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' || SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' ||
to_hex(procpid) to_hex(pid)
FROM pg_stat_activity; FROM pg_stat_activity;
</programlisting> </programlisting>
@ -4153,7 +4153,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
<para> <para>
Specifies the number of bytes reserved to track the currently Specifies the number of bytes reserved to track the currently
executing command for each active session, for the executing command for each active session, for the
<structname>pg_stat_activity</>.<structfield>current_query</> field. <structname>pg_stat_activity</>.<structfield>query</> field.
The default value is 1024. This parameter can only be set at server The default value is 1024. This parameter can only be set at server
start. start.
</para> </para>

View File

@ -14322,7 +14322,7 @@ SELECT set_config('log_statement_stats', 'off', false);
send signals (<systemitem>SIGINT</> or <systemitem>SIGTERM</> send signals (<systemitem>SIGINT</> or <systemitem>SIGTERM</>
respectively) to backend processes identified by process ID. respectively) to backend processes identified by process ID.
The process ID of an active backend can be found from The process ID of an active backend can be found from
the <structfield>procpid</structfield> column of the the <structfield>pid</structfield> column of the
<structname>pg_stat_activity</structname> view, or by listing the <structname>pg_stat_activity</structname> view, or by listing the
<command>postgres</command> processes on the server (using <command>postgres</command> processes on the server (using
<application>ps</> on Unix or the <application>Task <application>ps</> on Unix or the <application>Task

View File

@ -1462,8 +1462,8 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
example, to show the <acronym>PID</>s and current queries of all server processes: example, to show the <acronym>PID</>s and current queries of all server processes:
<programlisting> <programlisting>
SELECT pg_stat_get_backend_pid(s.backendid) AS procpid, SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
pg_stat_get_backend_activity(s.backendid) AS current_query pg_stat_get_backend_activity(s.backendid) AS query
FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s; FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;
</programlisting> </programlisting>
</para> </para>
@ -1670,7 +1670,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
<entry>statement-status</entry> <entry>statement-status</entry>
<entry>(const char *)</entry> <entry>(const char *)</entry>
<entry>Probe that fires anytime the server process updates its <entry>Probe that fires anytime the server process updates its
<structname>pg_stat_activity</>.<structfield>current_query</> status. <structname>pg_stat_activity</>.<structfield>status</>.
arg0 is the new status string.</entry> arg0 is the new status string.</entry>
</row> </row>
<row> <row>

View File

@ -2362,7 +2362,7 @@ static struct config_int ConfigureNamesInt[] =
{ {
{"track_activity_query_size", PGC_POSTMASTER, RESOURCES_MEM, {"track_activity_query_size", PGC_POSTMASTER, RESOURCES_MEM,
gettext_noop("Sets the size reserved for pg_stat_activity.current_query, in bytes."), gettext_noop("Sets the size reserved for pg_stat_activity.query, in bytes."),
NULL, NULL,
}, },
&pgstat_track_activity_query_size, &pgstat_track_activity_query_size,