Re: Average connections - Mailing list pgsql-general

From Bill Moran
Subject Re: Average connections
Date
Msg-id 20090610085214.19ad0776.wmoran@potentialtech.com
Whole thread Raw
In response to Average connections  (Pedro Doria Meunier <pdoria@netmadeira.com>)
Responses Re: Average connections
List pgsql-general
In response to Pedro Doria Meunier <pdoria@netmadeira.com>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all
>
> I've googled for an answer but couldn't find one.
> Is there anyway to monitor the average connections to a database?
>
> Thank you in advance for any insights.

The pg_stat_activity table holds 1 row for each connection with information
on what that connection is doing.

It wouldn't be very difficult to write a passthrough script for something
like MRTG to graph this data.

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/

pgsql-general by date:

Previous
From: Pedro Doria Meunier
Date:
Subject: Average connections
Next
From: Tom Lane
Date:
Subject: Re: Upgrade from Postgres 8.2.4 to 8.3.5