Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYYhW-00077p-DL for pgsql-sql@arkaria.postgresql.org; Fri, 21 Jul 2017 14:14:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dYYhV-0000Ne-Q5 for pgsql-sql@arkaria.postgresql.org; Fri, 21 Jul 2017 14:14:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYYhV-0000NR-6s for pgsql-sql@postgresql.org; Fri, 21 Jul 2017 14:14:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dYYhO-0001pn-IQ for pgsql-sql@postgresql.org; Fri, 21 Jul 2017 14:14:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v6LEEWCO029712; Fri, 21 Jul 2017 10:14:32 -0400 From: Tom Lane To: Tim Dudgeon cc: pgsql-sql@postgresql.org Subject: Re: commit not completing - how to investigate? In-reply-to: <5e59f5e0-7168-fb80-d038-7fe9adad4aa9@gmail.com> References: <5e59f5e0-7168-fb80-d038-7fe9adad4aa9@gmail.com> Comments: In-reply-to Tim Dudgeon message dated "Fri, 21 Jul 2017 12:32:57 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29710.1500646472.1@sss.pgh.pa.us> Date: Fri, 21 Jul 2017 10:14:32 -0400 Message-ID: <29711.1500646472@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Tim Dudgeon 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