pg_stat_activity_global
pg_stat_activity_global#
The pg_stat_activity_global system view provides information of the queries runing in the cluster.
Table 1. pg_catalog.pg_stat_activity_global
column |
type |
references |
description |
|---|---|---|---|
|
oid |
database oid |
|
|
name |
database name |
|
|
text |
host of main node that run the query |
|
|
integer |
process ID |
|
|
integer |
session ID |
|
|
oid |
user OID |
|
|
name |
user name |
|
|
text |
current query |
|
|
boolean |
query’s waiting status |
|
|
timestamp with time zone |
time at which the current query began execution |
|
|
timestamp with time zone |
time at which he process was started |
|
|
inet |
client’s address number |
|
|
integer |
client’s port number |
|
|
text |
the name of backend process connect to server |
|
|
timestamp with time zone |
time at which the current transaction started. Null when the process is without transaction. |
|
|
boolean |
status of waiting for resource manager. |