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 1hBNKH-0007GQ-LI for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 17:35:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBNKG-0007Uw-8r for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 17:35: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 1hBNKF-0007Up-QZ for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 17:35:56 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBNKC-0008VL-Nq for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 17:35:54 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 3F5B421C280B; Tue, 2 Apr 2019 20:35:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.1.14] (unknown [5.166.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id EF44621C2806; Tue, 2 Apr 2019 20:35:50 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1554226551; bh=fuRCTn2f0ohgwBfjNadXB11lkYzb5ntJOIj+sFtzXY8=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=FIQ0VfQtwtNk6uTMktt4S/a2DENoZw95j83sJOWQZ9IqPiM5MCeQNiT7omB4CNgu8 zJlZARgC7GpTzY7dIV0bKA7bqgYZNSH5EnJFfOojUl9AinZ++tV6UV4emYGJeJu4RF rWkaNMtVy0h5CFpJ3jf2WZaFYotgttdyYhsMJ8Ro= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: BUG #15727: PANIC: cannot abort transaction 295144144, it was already committed From: =?utf-8?B?0JbQsNGA0LrQvtCyINCg0L7QvNCw0L0=?= X-Mailer: iPhone Mail (16D57) In-Reply-To: <1492.1554225238@sss.pgh.pa.us> Date: Wed, 3 Apr 2019 00:35:47 +0700 Cc: Andres Freund , Alvaro Herrera , pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <2BD617B6-CC34-42EF-8D79-4669C5DFB8D1@postgrespro.ru> References: <30650.1554219866@sss.pgh.pa.us> <20190402155108.GA17787@alvherre.pgsql> <20190402161320.o5wkbp7evuzqe4c2@alap3.anarazel.de> <1492.1554225238@sss.pgh.pa.us> To: Tom Lane List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > 3 =D0=B0=D0=BF=D1=80. 2019 =D0=B3., =D0=B2 0:13, Tom Lane =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > r.zharkov@postgrespro.ru writes: >> I made the new core file: >=20 > Thanks, but this isn't much help --- it just shows what we already > know, ie the "cannot abort transaction" error occurs after some other > error was thrown. >=20 > What would be more helpful would be to adjust the places that > can throw the "unexpected table_lock_tuple status" error text to be > PANIC rather than ERROR, so that the core dump would show a stack > trace showing how we got to whichever of those places this is. > Or, run the test with a higher log verbosity, so that you can find > out which of those places is throwing the error to begin with; > then just PANIC-ize that one. >=20 > FWIW, I see six potential candidates, not two: >=20 > pgsql/src/backend/commands/trigger.c: 3380: elog(ERROR, "un= expected table_lock_tuple status: %u", test); > pgsql/src/backend/executor/nodeLockRows.c: 232: elog(ERROR,= "unexpected table_lock_tuple status: %u", > pgsql/src/backend/executor/nodeModifyTable.c: 881: = elog(ERROR, "unexpected table_lock_tuple status: %u", > pgsql/src/backend/executor/nodeModifyTable.c: 1384: = elog(ERROR, "unexpected table_lock_tuple status: %u", > pgsql/src/backend/executor/execReplication.c: 211: elog(ERR= OR, "unexpected table_lock_tuple status: %u", res); > pgsql/src/backend/executor/execReplication.c: 375: elog(ERR= OR, "unexpected table_lock_tuple status: %u", res); >=20 >=20 > regards, tom lane Ok. I will made it tomorrow morning. regards, Roman Zharkov=