Skip site navigation (1) Skip section navigation (2)

Re: Number of Current Client Connections

From: "Tomeh, Husam" <HTomeh(at)facorelogic(dot)com>
To: "Sean Brown" <sbrown(at)eaglepress(dot)com>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: Number of Current Client Connections
Date: 2008-11-10 15:23:20
Message-ID: 420101c94348$3d91b631$1a1ca8c0@ana.firstamdata.com (view raw or flat)
Thread:
Lists: pgsql-admin
Yes, you got it. A count on pg_stat_activity should do it.

Regards,
    Husam 


-----Original Message-----
From: Sean Brown <sbrown(at)eaglepress(dot)com>
Sent: Monday, November 10, 2008 7:10 AM
To: pgsql-admin(at)postgresql(dot)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 legally privileged.  If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited.  If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

                                   FADLD Tag
**********************************************************************

pgsql-admin by date

Next:From: Tom LaneDate: 2008-11-10 15:24:24
Subject: Re: max_files_per_process limit
Previous:From: Sean BrownDate: 2008-11-10 15:10:03
Subject: Number of Current Client Connections

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group