Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 67E1364FFD8 for ; Mon, 10 Nov 2008 11:33:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 05477-07 for ; Mon, 10 Nov 2008 11:33:05 -0400 (AST) X-Greylist: delayed 00:09:51.691823 by SQLgrey-1.7.6 Received: from outbound-smtp.firstam.com (outbound-smtp4.firstam.com [69.87.54.9]) by mail.postgresql.org (Postfix) with ESMTP id C877764FD98 for ; Mon, 10 Nov 2008 11:33:05 -0400 (AST) Received: from unknown (HELO PISGSNA01SMMX02.ana.firstamdata.com) ([172.17.88.44]) by outbound-smtp.firstam.com with ESMTP; 10 Nov 2008 07:23:11 -0800 Received: from pisgsna01sxch21.ana.firstamdata.com (Not Verified[172.17.88.71]) by PISGSNA01SMMX02.ana.firstamdata.com with MailMarshal (v6, 4, 0, 4772) id ; Mon, 10 Nov 2008 07:23:12 -0800 Received: from CITGSNA01SXCH02.ana.firstamdata.com ([172.17.88.30]) by pisgsna01sxch21.ana.firstamdata.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 10 Nov 2008 07:23:11 -0800 Received: from 172.17.88.26 ([172.17.88.26]) by CITGSNA01SXCH02.ana.firstamdata.com ([172.17.88.37]) with Microsoft Exchange Server HTTP-DAV ; Mon, 10 Nov 2008 15:23:10 +0000 MIME-Version: 1.0 Content-class: Message-ID: <420101c94348$3d91b631$1a1ca8c0@ana.firstamdata.com> From: "Tomeh, Husam" Subject: Re: Number of Current Client Connections thread-topic: [ADMIN] Number of Current Client Connections thread-index: AclDSD2R0EHUYZsOSCSNToflAtzRfw== Date: Mon, 10 Nov 2008 07:23:20 -0800 Importance: normal X-Priority: 3 To: "Sean Brown" , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-OriginalArrivalTime: 10 Nov 2008 15:23:11.0610 (UTC) FILETIME=[3E252DA0:01C94348] X-Archive-Number: 200811/49 X-Sequence-Number: 30703 Yes, you got it. A count on pg_stat_activity should do it. Regards, =20 Husam=20 -----Original Message----- From: Sean Brown Sent: Monday, November 10, 2008 7:10 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] Number of Current Client Connections Is there a query I can run against PostgreSQL to get the number of current client connections to the database? I didn't expect trying to track this down would be as difficult as it has been. Would a simple count of pg_stat_activity be correct? -Thanks ********************************************************************** This message contains confidential information intended only for the use = of the addressee(s) named above and may contain information that is legal= ly privileged. If you are not the addressee, or the person responsible f= or delivering it to the addressee, you are hereby notified that reading, = disseminating, distributing or copying this message is strictly prohibite= d. If you have received this message by mistake, please immediately noti= fy us by replying to the message and delete the original message immediat= ely thereafter. Thank you. =0D =20 FADLD Tag **********************************************************************