Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln03B-0007TK-HM for pgsql-admin@arkaria.postgresql.org; Sat, 29 May 2021 14:34:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ln03A-0001T2-0U for pgsql-admin@arkaria.postgresql.org; Sat, 29 May 2021 14:34:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln039-0001Su-Jm for pgsql-admin@lists.postgresql.org; Sat, 29 May 2021 14:34:51 +0000 Received: from nativespace-chaldene.ns-chaldene.com ([212.53.86.59]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ln032-0002gW-SD for pgsql-admin@lists.postgresql.org; Sat, 29 May 2021 14:34:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=davebolt.co.uk; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:In-Reply-To:References:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FjZ+nQYnz+r1l2YVk5LBgjI+5pZBwVOljc2txYLgwF8=; b=AUY6YbabSLqmrYY80y+qwEvPb 1Dvn8AidyrTQCWmXv0IDH16D8E2Q7qt1sW2E2tsD4DpzaWZNuXJiKr2nRJUDgq94dFIREfXB9qiNW De4IkEPCeAy4yB5bJzqMYEZjb4jF+aF/LunBK60JaEJuFRursb2EyIKF9jqoCmrBpDV7s=; Received: from davebolt.plus.com ([80.229.145.181]:59815 helo=BelongadaveX) by nativespace-chaldene.ns-chaldene.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ln02y-000Grh-Mn; Sat, 29 May 2021 15:34:40 +0100 From: To: "'Julien Rouhaud'" , Cc: "'Pgsql-admin'" References: <004101d7548b$894e0ce0$9bea26a0$@forenda.com.tr> In-Reply-To: Subject: RE: equivalent of @@TRANCOUNT PostgreSQL Date: Sat, 29 May 2021 15:34:41 +0100 Message-ID: <042901d75497$c2da72d0$488f5870$@co.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_042A_01D754A0.249EDAD0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AddUj4pqIFExksMgSU6qgLY6k6X9gQABdiSw Content-Language: en-gb X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - nativespace-chaldene.ns-chaldene.com X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - davebolt.co.uk X-Get-Message-Sender-Via: nativespace-chaldene.ns-chaldene.com: authenticated_id: dave@davebolt.co.uk X-Authenticated-Sender: nativespace-chaldene.ns-chaldene.com: dave@davebolt.co.uk List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_042A_01D754A0.249EDAD0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable @@TRANCOUNT: Transaction count. How many transactions are open at the moment. I=E2=80=99m 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@sea.gmane.org HTH. =20 From: Julien Rouhaud [mailto:rjuju123@gmail.com]=20 Sent: 29 May 2021 14:26 To: mustafa.pekgoz@forenda.com.tr Cc: Pgsql-admin Subject: Re: equivalent of @@TRANCOUNT PostgreSQL =20 On Sat, May 29, 2021 at 9:07 PM wrote: Hello, =20 I have a procedure where they have used @@TRANCOUNT , is there an = equivalent of @@TRANCOUNT in PostgreSQL? (Except Savepoint) =20 What does @@TRANCOUNT do? ------=_NextPart_000_042A_01D754A0.249EDAD0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

@@TRANCOUNT: Transaction count.

How many transactions are open at the moment.

I=E2=80=99m 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@sea.gmane.org

HTH.

 

From:= Julien = Rouhaud [mailto:rjuju123@gmail.com]
Sent: 29 May 2021 = 14:26
To: mustafa.pekgoz@forenda.com.tr
Cc: = Pgsql-admin
Subject: Re: equivalent of @@TRANCOUNT = PostgreSQL

 

On Sat, May 29, 2021 at 9:07 PM <mustafa.pekgoz@forenda.com.= tr> wrote:

Hello,

 

I have a procedure where = they have used @@TRANCOUNT , is there an equivalent of @@TRANCOUNT in = PostgreSQL? (Except Savepoint)

 

What does @@TRANCOUNT = do?

------=_NextPart_000_042A_01D754A0.249EDAD0--