X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 53A453AC2E7 for ; Tue, 28 Dec 2004 15:48:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96271-01 for ; Tue, 28 Dec 2004 15:48:45 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id C14E83AC0E6 for ; Tue, 28 Dec 2004 15:48:49 +0000 (GMT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 28 Dec 2004 09:48:49 -0600 Subject: Re: Open connections From: Scott Marlowe To: Nico Cc: pgsql-jdbc@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1104248929.21810.13.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 28 Dec 2004 09:48:49 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/201 X-Sequence-Number: 11867 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;