pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Brown <sbrown@eaglepress.com>
To: pgsql-admin@postgresql.org
Subject: Number of Current Client Connections
Date: Mon, 10 Nov 2008 10:10:03 -0500
Message-ID: <1226329803.26082.3.camel@lin-it1.eaglepress.local> (raw)

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

view thread (2+ messages)  latest in thread

Message-ID: <1226329803.26082.3.camel@lin-it1.eaglepress.local>
Permalink:  ../1226329803.26082.3.camel@lin-it1.eaglepress.local/
Also on:    postgresql.org/message-id/1226329803.26082.3.camel@lin-it1.eaglepress.local

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: sbrown@eaglepress.com
  Subject: Re: Number of Current Client Connections
  In-Reply-To: <1226329803.26082.3.camel@lin-it1.eaglepress.local>

* 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