pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: MichaelDBA <MichaelDBA@sqlexec.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: dave@davebolt.co.uk <dave@davebolt.co.uk>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: mustafa.pekgoz@forenda.com.tr <mustafa.pekgoz@forenda.com.tr>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: equivalent of @@TRANCOUNT PostgreSQL
Date: Sat, 29 May 2021 11:01:10 -0400
Message-ID: <2045693.1622300470@sss.pgh.pa.us> (raw)
In-Reply-To: <43af0a07-99df-6125-4227-ce1c22bd1fb8@sqlexec.com>
References: <004101d7548b$894e0ce0$9bea26a0$@forenda.com.tr>
	<CAOBaU_bwoQ8Hos1rrMHmGyzA5TfP0oJ0J3tHGYabod_Pe6YwHw@mail.gmail.com>
	<042901d75497$c2da72d0$488f5870$@co.uk>
	<CAKFQuwZZDB5bSYK+MzEvbdGCCSeLrG+eC5UC4NraVLmw=iEkaQ@mail.gmail.com>
	<43af0a07-99df-6125-4227-ce1c22bd1fb8@sqlexec.com>

MichaelDBA <MichaelDBA@sqlexec.com> writes:
> I don't think so, it's not current active transactions, but number of 
> active transactions on the CURRENT CONNECTION.

Isn't that a constant 1?  We don't do multiple active transactions
in one session.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <2045693.1622300470@sss.pgh.pa.us>
Permalink:  ../2045693.1622300470@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2045693.1622300470@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, MichaelDBA@sqlexec.com, david.g.johnston@gmail.com, dave@davebolt.co.uk, rjuju123@gmail.com, mustafa.pekgoz@forenda.com.tr, pgsql-admin@lists.postgresql.org
  Subject: Re: equivalent of @@TRANCOUNT PostgreSQL
  In-Reply-To: <2045693.1622300470@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox