Determining # of active connections

From: "Tim Barnard" <tbarnard(at)povn(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Determining # of active connections
Date: 2001-01-26 22:20:41
Message-ID: 00e501c087e6$37d7eee0$a519af3f@hartcomm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Does anyone know an easy way, perhaps using libpq, for a process to query the postmaster as to how many connections are currently forked/spawned for a given database? For example, if 2 processes are connected to database A and 3 to database B, is there a way to query postmaster as to how many are connected to A or B?

Tim

Browse pgsql-general by date

  From Date Subject
Next Message Trond Eivind =?iso-8859-1?q?Glomsr=F8d?= 2001-01-26 23:24:35 Re: PostgreSQL 7 on Redhat 6.1
Previous Message Mikheev, Vadim 2001-01-26 22:01:45 RE: Poor man's replication using WAL