Re: Add connection active, idle time to pg_stat_activity

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: kuntalghosh(dot)2007(at)gmail(dot)com
Cc: rafia(dot)pghackers(at)gmail(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add connection active, idle time to pg_stat_activity
Date: 2022-01-28 05:40:24
Message-ID: 20220128.144024.1520044389939069823.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Mon, 29 Nov 2021 20:34:14 +0530, Kuntal Ghosh <kuntalghosh(dot)2007(at)gmail(dot)com> wrote in
> active_time. But, I'm wondering why you need to distinguish between
> idle and idle in transactions - what's the usage? Either the backend
> is doing some work or it sits idle. Another useful information would

I believe many people suffer from mysterious long idle in
transactions, which harm server performance many ways. In many cases
transactions with unexpectedly long idle time is an omen or a cause of
trouble.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2022-01-28 05:43:03 Re: Add connection active, idle time to pg_stat_activity
Previous Message Kyotaro Horiguchi 2022-01-28 05:36:31 Re: Add connection active, idle time to pg_stat_activity