From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Nico <nicohmail-postgresql@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Open connections
Date: Tue, 28 Dec 2004 09:48:49 -0600
Message-ID: <1104248929.21810.13.camel@state.g2switchworks.com> (raw)
In-Reply-To: <cqrgbc$2o55$1@news.hub.org>
References: <cqrgbc$2o55$1@news.hub.org>
On Tue, 2004-12-28 at 05:34, Nico wrote:
> I would like to know how many connections are open at a certain time from a
> servlet, so I can anticipate connection errors. How do I do that?
Assuming that stats_row_level = true is set in the postgresql.conf file,
you can find out with:
SELECT * from pg_stat_activity;
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: smarlowe@g2switchworks.com, nicohmail-postgresql@yahoo.com
Subject: Re: Open connections
In-Reply-To: <1104248929.21810.13.camel@state.g2switchworks.com>
References: <cqrgbc$2o55$1@news.hub.org> <1104248929.21810.13.camel@state.g2switchworks.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