@@TRANCOUNT: Transaction count. How many transactions are open at the moment. I’m not seeing anything that looks appropriate. As far as I can see it might be possible to do something using the Statistics Collector, see https://www.postgresql.org/docs/13/monitoring-stats.html Hope someone knowledgeable on PostgreSQL will have an answer. I did find this from 2006. https://www.postgresql.org/message-id/eg5op3$ria$1@xxxxxxxxxxxxx HTH. From: Julien Rouhaud [mailto:rjuju123@xxxxxxxxx] On Sat, May 29, 2021 at 9:07 PM <mustafa.pekgoz@xxxxxxxxxxxxxx> wrote:
What does @@TRANCOUNT do? |