Re: what does pg_activity mean when the database is stuck?

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Si Chen <sichen(at)opensourcestrategies(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: what does pg_activity mean when the database is stuck?
Date: 2014-06-11 22:41:57
Message-ID: CAHyXU0zUDt20Qs60vnZEPg0ae8zHmHPm80AxoLh4PJEh-3CVaQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 11, 2014 at 5:37 PM, Si Chen
<sichen(at)opensourcestrategies(dot)com> wrote:
> The state is "idle". I don't have the state_change, but I will try to
> collect it if it happens again.

If they are idle, then the problem is probably with your application
-- you're grabbing new connections and not closing them or reusing
them. It's a very common problem. The 'query' when idle represents
the last query run -- the database finished it and is sitting around.

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keith 2014-06-11 22:51:06 Re: How can I tell if pg_restore is running?
Previous Message Si Chen 2014-06-11 22:37:54 Re: what does pg_activity mean when the database is stuck?