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+JQx9SLapE3iJ3yk=hH-zXeOsrpeqxTpwu63s2r0AJx-w@mail.gmail.com
Whole thread Raw
In response to Meaning of query age in pg_stat_activity  (Jan De Moerloose <jan@sensolus.com>)
Responses Re: Meaning of query age in pg_stat_activity
List pgsql-general
On Mon, Jan 29, 2018 at 3:06 PM, Jan De Moerloose <jan@sensolus.com> wrote:
...
SELECT pid, age(clock_timestamp(),query_start) as age, usename, query, state from pg_stat_activity order by age;

When the cpu is 100% and the app slowing down, i can see that some queries have a long age.

What is the value of "state" column for those queries? 

pgsql-general by date:

Previous
From: Jan De Moerloose
Date:
Subject: Meaning of query age in pg_stat_activity
Next
From: Adrian Klaver
Date:
Subject: Re: Meaning of query age in pg_stat_activity