Re: select count(*) from pg_stat_activity in V8.0.0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: Anony Mous <A(dot)Mous(at)shaw(dot)ca>, pgsql-general(at)postgresql(dot)org
Subject: Re: select count(*) from pg_stat_activity in V8.0.0
Date: 2004-08-19 14:25:03
Message-ID: 15594.1092925503@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Huxton <dev(at)archonet(dot)com> writes:
> Anony Mous wrote:
>> select count(*) from pg_stat_activity

> Do you have multiple live connections? My understanding of
> pg_stat_activity is that it can lag slightly behind the current state of
> the system.

If memory serves, it's up to 500 msec behind. So this technique has
never been 100% accurate. I'm not sure why A.Mous failed to observe the
inaccuracy before ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-08-19 14:32:53 Re: possible bug in exception handling code? (postgres8.0beta)
Previous Message Marcel Boscher 2004-08-19 14:08:38 Finally tsearch works ... somehow... remain a few questions