pg_stat_activity.query empty - Mailing list pgsql-general

From Robert Lichtenberger
Subject pg_stat_activity.query empty
Date
Msg-id ad84086a-12fc-f1e7-a24e-c24674a745d8@synedra.com
Whole thread Raw
Responses Re: pg_stat_activity.query empty  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
When executing "SELECT * FROM pg_stat_activity" I get lots of rows that 
have an empty "query" column.

According to [1] this column should contain the "Text of this backend's 
most recent query", either a query that is currently running or the last 
query that was executed.

So how comes that a lot of the rows in pg_stat_activity have an empty 
"query"?


https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW






pgsql-general by date:

Previous
From: Jian He
Date:
Subject: range of composite types!
Next
From: "David G. Johnston"
Date:
Subject: Re: pg_stat_activity.query empty