Re: equivalent of @@TRANCOUNT PostgreSQL

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

 



I don't think so, it's not current active transactions, but number of active transactions on the CURRENT CONNECTION.  No way you get that from pg_stat_activity.  So if your proc had a bunch of embedded BEGIN/END blocks, it would be that count.

David G. Johnston wrote on 5/29/2021 10:44 AM:
One transaction per process actively executing a query.


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux