pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Number of Current Client Connections
2+ messages / 2 participants
[nested] [flat]

* Number of Current Client Connections
@ 2008-11-10 15:10 Sean Brown <sbrown@eaglepress.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Sean Brown @ 2008-11-10 15:10 UTC (permalink / raw)
  To: pgsql-admin

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

Attachments:

  signature.asc (application/pgp-signature, 188B) download

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

* Re: Number of Current Client Connections
@ 2008-11-10 15:23 Tomeh, Husam <HTomeh@facorelogic.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomeh, Husam @ 2008-11-10 15:23 UTC (permalink / raw)
  To: Sean Brown <sbrown@eaglepress.com>; pgsql-admin


Yes, you got it. A count on pg_stat_activity should do it.

Regards,
    Husam 


-----Original Message-----
From: Sean Brown <sbrown@eaglepress.com>
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 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
**********************************************************************



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


end of thread, other threads:[~2008-11-10 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-11-10 15:10 Number of Current Client Connections Sean Brown <sbrown@eaglepress.com>
2008-11-10 15:23 Re: Number of Current Client Connections Tomeh, Husam <HTomeh@facorelogic.com>

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