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

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> 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.

That's basically a non-starter because of the delay in reporting from
the stats collector process (ie, even if the information was "completely
accurate" it'd still be stale by the time that your code gets its hands
on it).  I think you'd be talking about a complete redesign of the stats
subsystem to be able to use it that way.

Having said that, though, I'd be pretty surprised if the stats subsystem
was dropping more than a small fraction of messages --- I would think
that could only occur under very heavy load, and if that's your normal
operating state then it's time to upgrade your hardware ;-).  Maybe you
should investigate a bit more closely to find out why it's dropping so
much.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <14779.1144083156@sss.pgh.pa.us>
Permalink:  ../14779.1144083156@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14779.1144083156@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov, jerry@jerrysievers.com
  Subject: Re: pg_stat_activity showing non-existent processes
  In-Reply-To: <14779.1144083156@sss.pgh.pa.us>
  References: <m3veu2qzh8.fsf@prod01.jerrysievers.com> <22874.1143340808@sss.pgh.pa.us> <443109B6.EE98.0025.0@wicourts.gov> <14779.1144083156@sss.pgh.pa.us>

* 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