agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tim Dudgeon <tdudgeon.ml@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: commit not completing - how to investigate?
Date: Fri, 21 Jul 2017 10:14:32 -0400
Message-ID: <29711.1500646472@sss.pgh.pa.us> (raw)
In-Reply-To: <5e59f5e0-7168-fb80-d038-7fe9adad4aa9@gmail.com>
References: <5e59f5e0-7168-fb80-d038-7fe9adad4aa9@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

Tim Dudgeon <tdudgeon.ml@gmail.com> writes:
> I have a situation where the pg_stat_activity view shows that can have 
> some processes that are idle and not completing. In some cases the 
> statement being executed is COMMIT.

Are you sure you're interpreting the view properly?  If the session
state is shown as idle, it's idle.  We used to show the query field
as empty in that case, but recent PG versions allow the query field
to continue to show the last-completed command.

			regards, tom lane


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (4+ messages)  latest in thread

Message-ID: <29711.1500646472@sss.pgh.pa.us>
Permalink:  ../29711.1500646472@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29711.1500646472@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tdudgeon.ml@gmail.com
  Subject: Re: commit not completing - how to investigate?
  In-Reply-To: <29711.1500646472@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox