pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Sievers <jerry@jerrysievers.com>
To: pgsql-admin@postgresql.org
Subject: pg_stat_activity showing non-existent processes
Date: 25 Mar 2006 11:08:03 -0500
Message-ID: <m3veu2qzh8.fsf@prod01.jerrysievers.com> (raw)

Hello; Briefly, we've been fighting an "old idle transaction" problem
on our Pg 8.0.3 Solaris 2.9 production system for a long time.  This
is due to some quirks in our app server code (to be fixed ASAP
<groan>).

Hourly we run a script that SIGTERMs all backends reported as being in
idle transaction state for 6 hours or better.  Many, many runs of this
procedure during past several weeks; no problem.

Suddently, we have a condition where the pg_stat_activity view is
reporting several such backends and there is no such PID in the system
any more.  These were either successfully terminated by an earlier
script run, died off abnormally or even by normal client disconnect.
(Unknown).

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?

Great big thanks!

-- 
-------------------------------------------------------------------------------
Jerry Sievers   305 854-3001 (home)     WWW ECommerce Consultant
                305 321-1144 (mobile	http://www.JerrySievers.com/



view thread (12+ messages)  latest in thread

Message-ID: <m3veu2qzh8.fsf@prod01.jerrysievers.com>
Permalink:  ../m3veu2qzh8.fsf@prod01.jerrysievers.com/
Also on:    postgresql.org/message-id/m3veu2qzh8.fsf@prod01.jerrysievers.com

 · 

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: jerry@jerrysievers.com
  Subject: Re: pg_stat_activity showing non-existent processes
  In-Reply-To: <m3veu2qzh8.fsf@prod01.jerrysievers.com>
  References: <m3veu2qzh8.fsf@prod01.jerrysievers.com>

* 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