Re: Stale entries in pg_stat_activity - Mailing list pgsql-bugs

From Michael Fuhr
Subject Re: Stale entries in pg_stat_activity
Date
Msg-id 20041017043011.GA82898@winnie.fuhr.org
Whole thread Raw
In response to Re: Stale entries in pg_stat_activity  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Stale entries in pg_stat_activity
List pgsql-bugs
On Sun, Oct 17, 2004 at 12:01:45AM -0400, Tom Lane wrote:
> Michael Fuhr <mike@fuhr.org> writes:
> > pg_stat_activity sometimes shows old connections that have already
> > terminated.
>
> Define "old"?  There's a built-in delay of up to half a second (if
> memory serves) in the statistics views.

Fourteen minutes and counting.

I just noticed the problem this evening so I don't know how long
the stale connections remain in the view.  During my testing I was
restarting the backend frequently to start each run afresh; I'll
leave the current situation alone for a while and see what happens.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Stale entries in pg_stat_activity
Next
From: Michael Fuhr
Date:
Subject: Re: Stale entries in pg_stat_activity