pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nicola Contu <Nicola.Contu@gtt.net>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Alessandro Aste <alessandro.aste@gtt.net>
Subject: Waiting connections postgres 10
Date: Mon, 23 Jul 2018 16:41:59 +0000
Message-ID: <e7a0c47ac21d455ca8e4ba9642c83dd5@gtt.net> (raw)

Hello,

we used to monitor waiting connections with postgres 9.6.6 via this query :


select count (*) from pg_stat_activity where wait_event IS NOT NULL


Now  with postgres 10 it seems a bit harder to understand when a query from the application is waiting.


I  built this query but not sure I'm getting the right information.


select count (*) from pg_stat_activity where wait_event_type ='Client' and wait_event IN ('ClientRead','ClienteWrite') and state='idle'


Can anyone help me?


Thanks

view thread (2+ messages)  latest in thread

Message-ID: <e7a0c47ac21d455ca8e4ba9642c83dd5@gtt.net>
Permalink:  ../e7a0c47ac21d455ca8e4ba9642c83dd5@gtt.net/
Also on:    postgresql.org/message-id/e7a0c47ac21d455ca8e4ba9642c83dd5@gtt.net

 · 

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: Nicola.Contu@gtt.net, alessandro.aste@gtt.net
  Subject: Re: Waiting connections postgres 10
  In-Reply-To: <e7a0c47ac21d455ca8e4ba9642c83dd5@gtt.net>
  References: <e7a0c47ac21d455ca8e4ba9642c83dd5@gtt.net>

* 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