Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYbeJ-00019j-LS for pgsql-sql@arkaria.postgresql.org; Fri, 21 Jul 2017 17:23:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dYbeJ-0007zU-2J for pgsql-sql@arkaria.postgresql.org; Fri, 21 Jul 2017 17:23:35 +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 1dYbeI-0007z6-Ch for pgsql-sql@postgresql.org; Fri, 21 Jul 2017 17:23:34 +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 1dYbeF-0005vV-Qy for pgsql-sql@postgresql.org; Fri, 21 Jul 2017 17:23:33 +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 v6LHNUaE017756; Fri, 21 Jul 2017 13:23:30 -0400 From: Tom Lane To: Tim Dudgeon cc: pgsql-sql@postgresql.org Subject: Re: commit not completing - how to investigate? In-reply-to: References: <5e59f5e0-7168-fb80-d038-7fe9adad4aa9@gmail.com> <29711.1500646472@sss.pgh.pa.us> Comments: In-reply-to Tim Dudgeon message dated "Fri, 21 Jul 2017 16:18:49 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17754.1500657810.1@sss.pgh.pa.us> Date: Fri, 21 Jul 2017 13:23:30 -0400 Message-ID: <17755.1500657810@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: > Yes, the state is "idle", and the command is "COMMIT". > But if the COMMIT has completed then the process should finish and the > row not be present? Well, that's up to the connected client whether it's going to terminate the session or not. > So is what you are suggesting that in my case I'm using a connection > pool, and the COMMIT has completed successfully, the connection released > back to the pool, but not yet closed, so that process is still running? That's sort of the point of a connection pooler, to re-use database sessions rather than establishing new ones all the time. But the database doesn't know that a pooler is in use; it just sees a client connection that's not doing anything right now. 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