Determining # of active connections - Mailing list pgsql-general

From Tim Barnard
Subject Determining # of active connections
Date
Msg-id 00e501c087e6$37d7eee0$a519af3f@hartcomm.com
Whole thread Raw
List 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
 

pgsql-general by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: RE: Poor man's replication using WAL
Next
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: Re: PostgreSQL 7 on Redhat 6.1