Re: Meaning of query age in pg_stat_activity - Mailing list pgsql-general

From Nikolay Samokhvalov
Subject Re: Meaning of query age in pg_stat_activity
Date
Msg-id CANNMO+LCGYXsBtCOS6+q2FoCbm9Ad98eqd2=KcZJQSfEQCyNkw@mail.gmail.com
Whole thread Raw
In response to Re: Meaning of query age in pg_stat_activity  (Jan De Moerloose <jan@sensolus.com>)
Responses Re: Meaning of query age in pg_stat_activity  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
List pgsql-general


On Mon, Jan 29, 2018 at 3:45 PM, Jan De Moerloose <jan@sensolus.com> wrote:
So the query is just the latest query and the time is the transaction time since this query, i suppose ?
Thanks for your answer, i will try to make the transaction shorter as you suggest.

Yep. This is a very common confusion, however it usually happens regarding records with "state" = 'idle'
– notice that they also have something in "query" column while they are actually doing nothing. 

pgsql-general by date:

Previous
From: Pritam Barhate
Date:
Subject: Re: Using AWS ephemeral SSD storage for production database workload?
Next
From: Nikolay Samokhvalov
Date:
Subject: Re: Meaning of query age in pg_stat_activity