pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rodrigo De León <rdeleonp@gmail.com>
To: Campbell, Lance <lance@uiuc.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: How many connections are in use?
Date: Fri, 2 Nov 2007 03:42:31 -0500
Message-ID: <a55915760711020142x2b4b8a30q88d353f9b87c42d5@mail.gmail.com> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE8760197DCF@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE8760197DCF@SAB-FENWICK.sab.uiuc.edu>

On 11/2/07, Campbell, Lance <lance@uiuc.edu> wrote:
> Is there a way to log into PostgreSQL and determine how many database
> connections are in use?

Use pg_stat_activity.

See:
http://www.postgresql.org/docs/8.2/static/monitoring-stats.html#MONITORING-STATS-VIEWS



view thread (2+ messages)

Message-ID: <a55915760711020142x2b4b8a30q88d353f9b87c42d5@mail.gmail.com>
Permalink:  ../a55915760711020142x2b4b8a30q88d353f9b87c42d5@mail.gmail.com/
Also on:    postgresql.org/message-id/a55915760711020142x2b4b8a30q88d353f9b87c42d5@mail.gmail.com

 · 

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: rdeleonp@gmail.com, lance@uiuc.edu
  Subject: Re: How many connections are in use?
  In-Reply-To: <a55915760711020142x2b4b8a30q88d353f9b87c42d5@mail.gmail.com>

* 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