Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhq5h-0004IG-Ft for pgsql-general@arkaria.postgresql.org; Tue, 24 Jul 2018 05:42:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhq5f-00087g-NC for pgsql-general@arkaria.postgresql.org; Tue, 24 Jul 2018 05:42:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhduT-0005Bq-5r for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 16:42:09 +0000 Received: from out.pexch118.serverdata.net ([185.64.213.214]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhduO-00063w-IZ for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 16:42:06 +0000 Received: from MBX118-U1-LO-3.PEXCH118.serverpod.net (10.32.30.132) by MBX118-U1-LO-2.PEXCH118.serverpod.net (10.32.30.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.1466.3; Mon, 23 Jul 2018 17:41:59 +0100 Received: from MBX118-U1-LO-3.PEXCH118.serverpod.net ([10.32.30.132]) by MBX118-U1-LO-3.PEXCH118.serverpod.net ([10.32.30.132]) with mapi id 15.01.1466.003; Mon, 23 Jul 2018 17:41:59 +0100 From: Nicola Contu To: "pgsql-general@lists.postgresql.org" CC: Alessandro Aste Subject: Waiting connections postgres 10 Thread-Topic: Waiting connections postgres 10 Thread-Index: AQHUIqPgsHX4LLdgwUevDrAWlofJOw== Date: Mon, 23 Jul 2018 16:41:59 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [151.56.146.223] Content-Type: multipart/alternative; boundary="_000_e7a0c47ac21d455ca8e4ba9642c83dd5gttnet_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_e7a0c47ac21d455ca8e4ba9642c83dd5gttnet_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 =3D'Client' an= d wait_event IN ('ClientRead','ClienteWrite') and state=3D'idle' Can anyone help me? Thanks --_000_e7a0c47ac21d455ca8e4ba9642c83dd5gttnet_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,

we used to monitor waiting connections with postgres 9.6.6 via this quer= y :


select count (*) from pg_stat_activity where wait_event IS NOT NUL= L


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


I  built this query but not sure I'm getting the right inform= ation.


select count (*) from pg_stat_activity where wait_event_type= =3D'Client' and wait_event IN ('ClientRead','ClienteWrite') and state=3D'i= dle'


Can anyone help me?


Thanks

--_000_e7a0c47ac21d455ca8e4ba9642c83dd5gttnet_--