pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Jerry Sievers <jerry@jerrysievers.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_stat_activity showing non-existent processes
Date: Mon, 03 Apr 2006 11:40:38 -0500
Message-ID: <443109B6.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <22874.1143340808@sss.pgh.pa.us>
References: <m3veu2qzh8.fsf@prod01.jerrysievers.com>
	<m3veu2qzh8.fsf@prod01.jerrysievers.com>
	<22874.1143340808@sss.pgh.pa.us>

>>> On Sat, Mar 25, 2006 at  8:40 pm, in message
<22874.1143340808@sss.pgh.pa.us>,
Tom Lane <tgl@sss.pgh.pa.us> wrote: 
> 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.

Is there any way to tweak this in favor of more accurate information,
even if has a performance cost?  We're finding that during normal
operations we're not seeing most connections added to the
pg_stat_activity table.  We would like to be able to count on accurate
information there.  We've been considering adding functions to get at
the underlying structures to be able to retrieve it, but it would make a
lot of sense (for us, anyway) to make this table accurate instead.  What
would be involved in that?  Would it improve the accuracy of the other
statistics, as well?  Would anyone else be interested in something like
this (probably controlled by a configuration option), or are we unique
in this regard?

-Kevin




view thread (12+ messages)  latest in thread

Message-ID: <443109B6.EE98.0025.0@wicourts.gov>
Permalink:  ../443109B6.EE98.0025.0@wicourts.gov/
Also on:    postgresql.org/message-id/443109B6.EE98.0025.0@wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, jerry@jerrysievers.com, tgl@sss.pgh.pa.us
  Subject: Re: pg_stat_activity showing non-existent processes
  In-Reply-To: <443109B6.EE98.0025.0@wicourts.gov>
  References: <m3veu2qzh8.fsf@prod01.jerrysievers.com> <22874.1143340808@sss.pgh.pa.us> <443109B6.EE98.0025.0@wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox