what is pg_stat_activity.query for idle connections ?

From: David Gauthier <davegauthierpg(at)gmail(dot)com>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: what is pg_stat_activity.query for idle connections ?
Date: 2021-09-13 21:37:58
Message-ID: CAMBRECB8ieWna_+vhkKCJ+2cC6NkQ5po44iHBu4HWFk1KkW=yw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 ?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-09-13 21:41:53 Re: what is pg_stat_activity.query for idle connections ?
Previous Message Israel Brewster 2021-09-13 21:10:58 Re: Fastest option to transfer db?