pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
what is pg_stat_activity.query for idle connections ?
2+ messages / 2 participants
[nested] [flat]

* what is pg_stat_activity.query for idle connections ?
@ 2021-09-13 21:37  David Gauthier <davegauthierpg@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: David Gauthier @ 2021-09-13 21:37 UTC (permalink / raw)
  To: 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 ?

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: what is pg_stat_activity.query for idle connections ?
@ 2021-09-13 21:41  Tom Lane <tgl@sss.pgh.pa.us>
  parent: David Gauthier <davegauthierpg@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2021-09-13 21:41 UTC (permalink / raw)
  To: David Gauthier <davegauthierpg@gmail.com>; +Cc: pgsql-general

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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-09-13 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13 21:37 what is pg_stat_activity.query for idle connections ? David Gauthier <davegauthierpg@gmail.com>
2021-09-13 21:41 ` Tom Lane <tgl@sss.pgh.pa.us>

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