pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Sudhir Guna <sudhir.guna.sg@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: DB connection issue suggestions
Date: Thu, 12 May 2022 23:08:28 -0500
Message-ID: <20220513040827.GQ19626@telsasoft.com> (raw)
In-Reply-To: <CAGedWvNyeEi+-5gkxnvv3DvrnAtZ5ScS9buc1=rY=7bQ6dDbnQ@mail.gmail.com>
References: <CAGedWvP=Mho1ayhmpXVQbaS3xxqu9ZgQOhKe-rF4kyxo=gYN0Q@mail.gmail.com>
	<20220510181540.GC19626@telsasoft.com>
	<CAGedWvMr1duwgbb5EshaFn8n71Nn_gd_c0QWEOTx-atHptA+cg@mail.gmail.com>
	<20220511190911.GO19626@telsasoft.com>
	<CAGedWvNyeEi+-5gkxnvv3DvrnAtZ5ScS9buc1=rY=7bQ6dDbnQ@mail.gmail.com>

If the problem occurs gradually (like leaking 20 connections per hour during
ETL), you can check pg_stat_activity every hour or so to try to observe the
problem before all the connection slots are used up, to collect diagnostic
information.

Alternately, leave a connection opened to the DB and wait until all connection
slots *are* used up, and then check pg_stat_activity.  That will take longer,
and you'll have more information to weed through.

What messages are in the server's log ?

v11.2 is years old and hundreds of bugfixes behind.  Since you ran into this
problem anyway, why not run 11.16, which was released today ?

How did you install postgres 11 ?  From source or from packages ?  Which
packages ?  The semi-official PGDG RPM packages are available here:
https://yum.postgresql.org/

-- 
Justin





view thread (14+ messages)

Message-ID: <20220513040827.GQ19626@telsasoft.com>
Permalink:  ../20220513040827.GQ19626@telsasoft.com/
Also on:    postgresql.org/message-id/20220513040827.GQ19626@telsasoft.com

 · 

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-performance@postgresql.org
  Cc: pryzby@telsasoft.com, sudhir.guna.sg@gmail.com
  Subject: Re: DB connection issue suggestions
  In-Reply-To: <20220513040827.GQ19626@telsasoft.com>

* 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