Re: Perl + Determine active connections on Pg 8.0.x and Pg 8.2.x - Mailing list pgsql-general

From Tom Lane
Subject Re: Perl + Determine active connections on Pg 8.0.x and Pg 8.2.x
Date
Msg-id 28882.1179782087@sss.pgh.pa.us
Whole thread Raw
In response to Re: Perl + Determine active connections on Pg 8.0.x and Pg 8.2.x  (Richard Huxton <dev@archonet.com>)
List pgsql-general
Richard Huxton <dev@archonet.com> writes:
> CAJ CAJ wrote:
>> SELECT count(*) from pg_stat_activity;
>>
>> The above query always returns 0 rows for Pg 8.0.x and 1 row for Pg 8.2.x.

> The pg_stat_activity view is never completely up-to-date, there is
> always some time lag.

It *is* up-to-date as of 8.2, but in prior releases there can be as much
as half a second time lag.

            regards, tom lane

pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: What is "Postgresql Hot"?
Next
From: Bill Moseley
Date:
Subject: Schema sanity check