Re: equivalent of @@TRANCOUNT PostgreSQL

Поиск
Список
Период
Сортировка
От MichaelDBA
Тема Re: equivalent of @@TRANCOUNT PostgreSQL
Дата
Msg-id 43af0a07-99df-6125-4227-ce1c22bd1fb8@sqlexec.com
обсуждение исходный текст
Ответ на Re: equivalent of @@TRANCOUNT PostgreSQL  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: equivalent of @@TRANCOUNT PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
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.

В списке pgsql-admin по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: equivalent of @@TRANCOUNT PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: equivalent of @@TRANCOUNT PostgreSQL