Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqgAy-0002WN-RA for pgsql-admin@arkaria.postgresql.org; Fri, 26 Nov 2021 18:42:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mqgAx-0003P5-Mw for pgsql-admin@arkaria.postgresql.org; Fri, 26 Nov 2021 18:42:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqgAx-0003Oc-CE for pgsql-admin@lists.postgresql.org; Fri, 26 Nov 2021 18:42:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mqgAr-00073q-38 for pgsql-admin@lists.postgresql.org; Fri, 26 Nov 2021 18:42:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AQIgGXq440099; Fri, 26 Nov 2021 13:42:16 -0500 From: Tom Lane To: Chris Cawley cc: "pgsql-admin@lists.postgresql.org" Subject: Re: What do you do with a long running rollback In-reply-to: <1977259621.1023368.1637951601701@mail.yahoo.com> References: <1977259621.1023368.1637951601701.ref@mail.yahoo.com> <1977259621.1023368.1637951601701@mail.yahoo.com> Comments: In-reply-to Chris Cawley message dated "Fri, 26 Nov 2021 18:33:21 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <440097.1637952136.1@sss.pgh.pa.us> Date: Fri, 26 Nov 2021 13:42:16 -0500 Message-ID: <440098.1637952136@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Chris Cawley writes: > It's been like that for several days already. Really? Rollback is O(1) in Postgres. I could possibly believe that it's blocked on a lock, but even that would be a bug, because transaction abort should never try to take any new locks. A perhaps-more-plausible theory is that you've enabled synchronous commit but your replica is failing to ack the transmission of the abort's WAL record. What are you looking at exactly? regards, tom lane