Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBLqL-0002ff-Im for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 16:00:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBLqK-0006Zr-8q for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 16:00:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBLqJ-0006Zk-U7 for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 16:00:56 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBLqH-0006Pq-K1 for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 16:00:54 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 422C861CE; Tue, 2 Apr 2019 12:00:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 02 Apr 2019 12:00:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=1jV40Vp0nSoJucYzbRIPv9ey0FP 4QFEFtXOou1J2I4M=; b=RIy3POl8ra4ur0CUmVfr19PdssCqUycf2MpZQXLyy66 4AOwHwWIIy3KXZp4kPROGjgjnUF2t2oU+DSjjWgXimsE1W2vde0WoPK7C5KfCIpb 1eNQrxXlGcKZzmO0fl8Xpd4v1vNWSIhSDuHVRh/5Y1+PaSZ0kvEsOZj73ayLyoA2 1OF04exlWIKaIYIS3iiWvBgZ5JeC+gn3DEJK08vE7GMIn89QJMQnz/N4s5cJg9d2 LPQslUBC1j4+aXw8fXHiuR21kavd5TBcbecLxVcRtt+Wegq9wIHy8T2U2eG3eZCz 4SZF42NBF0fwXSNNcYKUT8C6YvcFS6KyFVo1Me2gtJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=1jV40V p0nSoJucYzbRIPv9ey0FP4QFEFtXOou1J2I4M=; b=bVJ4wCxlX3OpscxZJhkW+5 EM6dH/7S/i1iiDkP4uPmeYIPbPMUdopjJPQIi+FoWXD6bYHAWET+BMlks7yhI3Ra ZstA+HI5u8stlZQmbqkdaVcLxjKGJX75R75Tyy4gtlHesd0JvPZPPH/NPsBSu+RQ WT90O+BvvaINLsadLeM2bk2Ne/MA2LJ919QfFm6zL32+3H2i3fHWXFiYpaoNiau9 XSRwgRwNCBmr0X1fAIBABvmG1D8ExojdZl5jVTr5V4EgElr1AD+TzlJyGGKeTxmq /a/PfeVBBp5vEjeWD+EEiPw3qcYpsp7O0DRAxxSt6R8f2OaCKlUWKckI6XwpdStQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrtddtgdejheculddtuddrgedutddrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhgu uceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepleekrddvuddtrdduge dtrddujedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgii vghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 78CBC10396; Tue, 2 Apr 2019 12:00:50 -0400 (EDT) Date: Tue, 2 Apr 2019 09:00:48 -0700 From: Andres Freund To: Tom Lane Cc: r.zharkov@postgrespro.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15727: PANIC: cannot abort transaction 295144144, it was already committed Message-ID: <20190402160048.2rohtgdmwsbkhhw6@alap3.anarazel.de> References: <15727-0be246e7d852d229@postgresql.org> <20190402152925.kwt4xm7sfnay3t7t@alap3.anarazel.de> <30650.1554219866@sss.pgh.pa.us> <20190402154720.skjy27z7h5xildfm@alap3.anarazel.de> <30912.1554220298@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30912.1554220298@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-04-02 11:51:38 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2019-04-02 11:44:26 -0400, Tom Lane wrote: > >> What that seems to indicate is that the "unexpected table_lock_tuple > >> status" error was thrown during commit, which seems pretty odd. > > > I suspect that's a deferred trigger. But that code obviously could throw > > errors, so we gotta handle that correctly. > > Deferred triggers execute before the real transaction commit, not during > the critical section surrounding where we set the bit in pg_clog. > But this error is seemingly getting thrown from within that critical > section, otherwise we wouldn't have inconsistent xact status afterwards. I don't think it was thrown during the critical section - we'd otherwise see the ERROR about unexpected lock status converted to a PANIC (and the "cannot abort transaction, already committed" is a PANIC itself). I suspect it's more likely that we corrupt the xact.c status somewhere - but it's hard to say without knowing more about the workload. Greetings, Andres Freund