On Mon, Jan 29, 2018 at 3:06 PM, Jan De Moerloose <jan(at)sensolus(dot)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?