Search Postgresql Archives

Re: Meaning of query age in pg_stat_activity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The state is 'idle in transaction'.

On Tue, Jan 30, 2018 at 12:10 AM, Nikolay Samokhvalov <samokhvalov@xxxxxxxxx> wrote:
On Mon, Jan 29, 2018 at 3:06 PM, Jan De Moerloose <jan@xxxxxxxxxxxx> 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? 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux