pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Sugden <stephen@aers.ca>
To: pgsql-admin@postgresql.org
Subject: When does postgres set the connection state back to idle?
Date: Wed, 11 May 2011 15:20:11 -0700
Message-ID: <BANLkTi=FWP9UrLFqCL-cgKqcRe0cXOhByA@mail.gmail.com> (raw)

I've been having a difficult time finding an answer for this via google, so
please excuse me if this is the wrong list, or a stupid question...

We're trying to diagnose a system issue where we ended up with 100's of
non-idle queries in pg_stat_activity, but the actual system load didn't
correspond to what we should have seen with that query load. Is it possible
that a client could cause this by not acknowledging that it has received
results, so that postgres will think the query is active even when it's done
the hard work of getting the queried data off disk? These were all SELECT
queries if that makes any difference.

-Stephen

view thread (2+ messages)  latest in thread

Message-ID: <BANLkTi=FWP9UrLFqCL-cgKqcRe0cXOhByA@mail.gmail.com>
Permalink:  ../BANLkTi=FWP9UrLFqCL-cgKqcRe0cXOhByA@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTi=FWP9UrLFqCL-cgKqcRe0cXOhByA@mail.gmail.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: stephen@aers.ca
  Subject: Re: When does postgres set the connection state back to idle?
  In-Reply-To: <BANLkTi=FWP9UrLFqCL-cgKqcRe0cXOhByA@mail.gmail.com>
  References: <BANLkTi=FWP9UrLFqCL-cgKqcRe0cXOhByA@mail.gmail.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