| From: | Bill Moran <wmoran(at)potentialtech(dot)com> |
|---|---|
| To: | Pedro Doria Meunier <pdoria(at)netmadeira(dot)com> |
| Cc: | Postgresql Mailing List <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Average connections |
| Date: | 2009-06-10 12:52:14 |
| Message-ID: | 20090610085214.19ad0776.wmoran@potentialtech.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
In response to Pedro Doria Meunier <pdoria(at)netmadeira(dot)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/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2009-06-10 14:22:43 | Re: Upgrade from Postgres 8.2.4 to 8.3.5 |
| Previous Message | Nykolyn, Andrew P (AS) | 2009-06-10 12:38:26 | Re: Upgrade from Postgres 8.2.4 to 8.3.5 |