Re: How to determine number of established connections

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Andrus <eetasoft(at)online(dot)ee>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to determine number of established connections
Date: 2006-02-20 18:09:09
Message-ID: 20060220180909.GA38609@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Feb 20, 2006 at 07:39:55PM +0200, Andrus wrote:
> When connectiong to database my application needs to determine how many
> connections is currently established to Postgres server.

You could query pg_stat_activity or the underlying statistics
collector functions.

http://www.postgresql.org/docs/8.1/interactive/monitoring-stats.html

Statistics collector reports lag behind actual activity but they
might suffice for whatever you're doing. Why does your application
need to know this?

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2006-02-20 18:24:05 How to specify infinity for intervals ?
Previous Message Andrus 2006-02-20 17:39:55 How to determine number of established connections