pg_stat_activity.query empty

From: Robert Lichtenberger <r(dot)lichtenberger(at)synedra(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: pg_stat_activity.query empty
Date: 2022-04-26 13:55:25
Message-ID: ad84086a-12fc-f1e7-a24e-c24674a745d8@synedra.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2022-04-26 13:59:14 Re: pg_stat_activity.query empty
Previous Message Jian He 2022-04-26 09:16:13 range of composite types!