Re: How to track number of connections and hosts to Postgres cluster - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: How to track number of connections and hosts to Postgres cluster
Date
Msg-id CAOR=d=1bFv=Yw5QbWSV9KnSFo1wnbehLi7ymGjeHUqVvgx9SAw@mail.gmail.com
Whole thread Raw
In response to Re: How to track number of connections and hosts to Postgres cluster  (Venkat Balaji <venkat.balaji@verse.in>)
Responses Re: How to track number of connections and hosts to Postgres cluster
List pgsql-performance
On Wed, Aug 24, 2011 at 5:21 AM, Venkat Balaji <venkat.balaji@verse.in> wrote:
> But, the information vanishes if the application logs off.
> I am looking for an alternative to track the total amount of the connections
> with the host IPs through a Cron job.
> What could be the frequency of cron ?
> I know the best is using log_connections and log_disconnections parameters,
> but, information logged would be too high and is also IO intensive.

Really?  Have you tested how much IO it will generate?  My guess is
not that much.  And on a database server it should be a miniscule
amount compared to what your DB is doing the rest of the time.
Eliminating this choice is premature optimization IMHO.

pgsql-performance by date:

Previous
From:
Date:
Subject: Re: Intel 320 SSD info
Next
From: Merlin Moncure
Date:
Subject: Re: Intel 320 SSD info