diff options
author | Robert Haas <rhaas@postgresql.org> | 2017-03-26 22:02:22 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2017-03-26 22:02:22 -0400 |
commit | fc70a4b0df38bda6a13941f1581f25fbb643c7f3 (patch) | |
tree | 87ee4eec5f4bc96bacad8e8c5313abc5f9c3f367 /doc/src | |
parent | 2f0903ea196503fc8af373a9de46b1e01a23508c (diff) | |
download | postgresql-fc70a4b0df38bda6a13941f1581f25fbb643c7f3.tar.gz postgresql-fc70a4b0df38bda6a13941f1581f25fbb643c7f3.zip |
Show more processes in pg_stat_activity.
Previously, auxiliary processes and background workers not connected
to a database (such as the logical replication launcher) weren't
shown. Include them, so that we can see the associated wait state
information. Add a new column to identify the processes type, so that
people can filter them out easily using SQL if they wish.
Before this patch was written, there was discussion about whether we
should expose this information in a separate view, so as to avoid
contaminating pg_stat_activity with things people might not want to
see. But putting everything in pg_stat_activity was a more popular
choice, so that's what the patch does.
Kuntal Ghosh, reviewed by Amit Langote and Michael Paquier. Some
revisions and bug fixes by me.
Discussion: http://postgr.es/m/CA+TgmoYES5nhkEGw9nZXU8_FhA8XEm8NTm3-SO+3ML1B81Hkww@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/monitoring.sgml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index e930731b162..9856968997e 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -620,8 +620,8 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser <row> <entry><structfield>backend_start</></entry> <entry><type>timestamp with time zone</></entry> - <entry>Time when this process was started, i.e., when the - client connected to the server + <entry>Time when this process was started. For client backends, + this is the time the client connected to the server. </entry> </row> <row> @@ -797,6 +797,17 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser <xref linkend="guc-track-activity-query-size">. </entry> </row> + <row> + <entry><structfield>backend_type</structfield></entry> + <entry><type>text</type></entry> + <entry>Type of current backend. Possible types are + <literal>autovacuum launcher</>, <literal>autovacuum worker</>, + <literal>background worker</>, <literal>background writer</>, + <literal>client backend</>, <literal>checkpointer</>, + <literal>startup</>, <literal>walreceiver</>, + <literal>walsender</> and <literal>walwriter</>. + </entry> + </row> </tbody> </tgroup> </table> |