Re: Re: How to track number of connections and hosts to Postgres cluster

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Venkat Balaji <venkat(dot)balaji(at)verse(dot)in>
Cc: MirrorX <mirrorx(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Re: How to track number of connections and hosts to Postgres cluster
Date: 2011-09-12 17:00:08
Message-ID: CAHyXU0ynmzw70FOjoKaXCWrchcrRjOs0JoXTNNjVfK6+NZAfjA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Aug 30, 2011 at 12:55 AM, Venkat Balaji <venkat(dot)balaji(at)verse(dot)in> wrote:
> Thanks to all for your very helpful replies !
> As Greg Smith rightly said, i faced a problem of missing connections between
> the runs. I even ran the cron every less than a second, but, still that
> would become too many runs per second and later i need to take the burden of
> calculating every thing from the log.
> I did not really calculate the IO load while the logging is on. I would
> switch on "log_connections" and "log_disconnections" to log the number of
> connections and duration of a connection.

yet another reason why we need connection and disconnection triggers
(especially the former, since disconnection triggers can be kludged
with an on_proc_exit/dblink hook).

merlin

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Klemme 2011-09-12 17:04:22 Re: Postgres for a "data warehouse", 5-10 TB
Previous Message Anthony Presley 2011-09-12 16:56:27 Re: RAID Controller (HP P400) beat by SW-RAID?