pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Gauthier <davegauthierpg@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: what is pg_stat_activity.query for idle connections ?
Date: Mon, 13 Sep 2021 17:41:53 -0400
Message-ID: <534191.1631569313@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMBRECB8ieWna_+vhkKCJ+2cC6NkQ5po44iHBu4HWFk1KkW=yw@mail.gmail.com>
References: <CAMBRECB8ieWna_+vhkKCJ+2cC6NkQ5po44iHBu4HWFk1KkW=yw@mail.gmail.com>

David Gauthier <davegauthierpg@gmail.com> writes:
> 11.3 on linux
> I have a DB with a worrisome number of connections with
> pg_stat_activity.query = '/* DBD::Pg ping test v3.5.3 */', all of them with
> state='idle'.  I have code that uses perl's ping method to ping the DB and
> I suspect this is the source.  Is '/* DBD::Pg ping test v3.5.3 */' the last
> thing it did, but because it's idle now, it's actually doing nothing ?

Yes, exactly.

			regards, tom lane





view thread (2+ messages)

Message-ID: <534191.1631569313@sss.pgh.pa.us>
Permalink:  ../534191.1631569313@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/534191.1631569313@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 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: tgl@sss.pgh.pa.us, davegauthierpg@gmail.com
  Subject: Re: what is pg_stat_activity.query for idle connections ?
  In-Reply-To: <534191.1631569313@sss.pgh.pa.us>
  References: <CAMBRECB8ieWna_+vhkKCJ+2cC6NkQ5po44iHBu4HWFk1KkW=yw@mail.gmail.com> <534191.1631569313@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