pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dmitry Dolgov <9erthalion6@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Cc: James Sewell <james.sewell@jirotech.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Max connections reached without max connections reached
Date: Fri, 3 Dec 2021 17:31:08 +0100
Message-ID: <20211203163108.bfn4td7ruruh3bvp@localhost> (raw)
In-Reply-To: <2293661.1638545523@sss.pgh.pa.us>
References: <CAFiTN-sYJuxkMyPRqg1jdyAQt4zRDe39ztoS7zq0BANRpGkMUQ@mail.gmail.com>
	<CAFiTN-u7ih7EuPtHyhOGtM+vAb3Bw152zZdU+RVS7k7ven7X+g@mail.gmail.com>
	<CAANVwEtNuL8ZNdeN+8yjjuc5+HP-X_pKq3rz0auBrzNMzXDzTg@mail.gmail.com>
	<CAFiTN-tD4tEdZEAUO1BZ0jdYu_rH9gNG_uViZdHHx1hj0t=h8Q@mail.gmail.com>
	<CAANVwEts8MVyS-RJKCPVAGG+xEJZaxSJraMoVzU4KNt_7YimSQ@mail.gmail.com>
	<CAFiTN-uANPvW5JoQXkt3ep5Jappu3ymuYeqs7yuqJhdkv5Mf5g@mail.gmail.com>
	<CAANVwEuh4+s2fJCfAA_8m5Apy+i=MPOLa=iht-jBO6WH4YbMDA@mail.gmail.com>
	<CAFiTN-t8JS63URu7CcyJ5ckd9RPyou7x73F7f29Uo2fPCUULnw@mail.gmail.com>
	<CAFiTN-v6FrBe9FTtZa-CT0r7UViWEz0_5ziU7k6cOHPhFs!yMvA@mail.gmail.com>
	<2293661.1638545523@sss.pgh.pa.us>

> On Fri, Dec 03, 2021 at 10:32:03AM -0500, Tom Lane wrote:
> Dilip Kumar <dilipbalaut@gmail.com> writes:
> > On Thu, Dec 2, 2021 at 9:35 AM Dilip Kumar <dilipbalaut@gmail.com> wrote:
> >> I think there is no such view or anything which tells about which
> >> backend or transaction has more than 64 sub transaction.  But if we
> >> are ready to modify the code then we can LOG that information in
> >> GetNewTransactionId(), when first time we are marking it overflown.
>
> > I have prepared a small patch to log this information.
>
> Putting an elog call into GetNewTransactionId seems like a completely
> horrid idea from a performance standpoint.  Especially if you put it
> inside the XidGenLock hold, where it can block the entire system not just
> the one process.  But even without that, this seems like a performance
> penalty with basically no real-world benefit.  People who have issues
> like this are not going to want to trawl the postmaster log for such
> messages.

Maybe it's worth a trace point then, to allow collect such info sort of
on demand?





view thread (40+ messages)  latest in thread

Message-ID: <20211203163108.bfn4td7ruruh3bvp@localhost>
Permalink:  ../20211203163108.bfn4td7ruruh3bvp@localhost/
Also on:    postgresql.org/message-id/20211203163108.bfn4td7ruruh3bvp@localhost

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: 9erthalion6@gmail.com, tgl@sss.pgh.pa.us, dilipbalaut@gmail.com, james.sewell@jirotech.com
  Subject: Re: Max connections reached without max connections reached
  In-Reply-To: <20211203163108.bfn4td7ruruh3bvp@localhost>
  References: <CAFiTN-sYJuxkMyPRqg1jdyAQt4zRDe39ztoS7zq0BANRpGkMUQ@mail.gmail.com> <CAFiTN-u7ih7EuPtHyhOGtM+vAb3Bw152zZdU+RVS7k7ven7X+g@mail.gmail.com> <CAANVwEtNuL8ZNdeN+8yjjuc5+HP-X_pKq3rz0auBrzNMzXDzTg@mail.gmail.com> <CAFiTN-tD4tEdZEAUO1BZ0jdYu_rH9gNG_uViZdHHx1hj0t=h8Q@mail.gmail.com> <CAANVwEts8MVyS-RJKCPVAGG+xEJZaxSJraMoVzU4KNt_7YimSQ@mail.gmail.com> <CAFiTN-uANPvW5JoQXkt3ep5Jappu3ymuYeqs7yuqJhdkv5Mf5g@mail.gmail.com> <CAANVwEuh4+s2fJCfAA_8m5Apy+i=MPOLa=iht-jBO6WH4YbMDA@mail.gmail.com> <CAFiTN-t8JS63URu7CcyJ5ckd9RPyou7x73F7f29Uo2fPCUULnw@mail.gmail.com> <CAFiTN-v6FrBe9FTtZa-CT0r7UViWEz0_5ziU7k6cOHPhFs!yMvA@mail.gmail.com> <2293661.1638545523@sss.pgh.pa.us> <20211203163108.bfn4td7ruruh3bvp@localhost>

* 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