Add sub-transaction overflow status in pg_stat_activity
Dilip Kumar <dilipbalaut@gmail.com>
From: Dilip Kumar <dilipbalaut@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-12-07T04:16:25Z
Lists: pgsql-hackers
Attachments
- v1-0001-Add-subtransaction-count-and-overflow-status-in-p.patch (text/x-patch) patch v1-0001
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] [1] https://www.postgresql.org/message-id/CAFiTN-t5BkwdHm1bV8ez64guWZJB_Jjhb7arsQsftxEwpYwObg%40mail.gmail.com -- Regards, Dilip Kumar EnterpriseDB: http://www.enterprisedb.com
Commits
-
Fix comment that was missing a word.
- eb60eb08a95e 16.0 landed
-
Expose some information about backend subxact status.
- 10ea0f924a27 16.0 landed