Re: pg_stat_activity showing non-existent processes - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_stat_activity showing non-existent processes
Date
Msg-id 22874.1143340808@sss.pgh.pa.us
Whole thread Raw
In response to pg_stat_activity showing non-existent processes  (Jerry Sievers <jerry@jerrysievers.com>)
Responses Re: pg_stat_activity showing non-existent processes  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-admin
Jerry Sievers <jerry@jerrysievers.com> writes:
> At any rate; I'm wondering what possible causes might be responsible
> for pg_stat_activity's underlying functions to lose track of the valid
> process list?

It sounds like the stats collector missed a few "backend quit"
messages.  This isn't real surprising: the stats messaging mechanism is
intentionally designed to drop messages under severe load, rather than
slow down backends.

We recently put in a filter that prevents reporting pg_stat_activity
lines for backends that are dead according to the up-to-date list in
shared memory.  I don't think that's in 8.0.3 though.

            regards, tom lane

pgsql-admin by date:

Previous
From:
Date:
Subject: Re: Renaming a sequence?
Next
From: Erwin Brandstetter
Date:
Subject: database locale and system locale