Re: Add sub-transaction overflow status in pg_stat_activity - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: Add sub-transaction overflow status in pg_stat_activity
Date
Msg-id 82E46491-91DA-491D-9D85-189F098EBAE5@amazon.com
Whole thread Raw
In response to Re: Add sub-transaction overflow status in pg_stat_activity  (Dilip Kumar <dilipbalaut@gmail.com>)
Responses Re: Add sub-transaction overflow status in pg_stat_activity  ("Imseih (AWS), Sami" <simseih@amazon.com>)
List pgsql-hackers
On 12/6/21, 8:19 PM, "Dilip Kumar" <dilipbalaut@gmail.com> wrote:
> If the subtransaction cache is overflowed in some of the transactions
> then it will affect all the concurrent queries as they need to access
> the SLRU for checking the visibility of each tuple.  But currently
> there is no way to identify whether in any backend subtransaction is
> overflowed or what is the current active subtransaction count.
> Attached patch adds subtransaction count and subtransaction overflow
> status in pg_stat_activity.  I have implemented this because of the
> recent complain about the same[1]

I'd like to give a general +1 to this effort.  Thanks for doing this!
I've actually created a function to provide this information in the
past, so I will help review.

Nathan


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Dubious usage of TYPCATEGORY_STRING
Next
From: Tom Lane
Date:
Subject: Re: ExecTypeSetColNames is fundamentally broken