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 1hBLgy-0002An-HZ for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 15:51:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBLgx-0002O1-6l for pgsql-bugs@arkaria.postgresql.org; Tue, 02 Apr 2019 15:51:15 +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 1hBLgw-0002HM-Ne for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 15:51:14 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBLgt-0006B5-Rs for pgsql-bugs@lists.postgresql.org; Tue, 02 Apr 2019 15:51:13 +0000 Received: by mail-qt1-x841.google.com with SMTP id x12so15781242qts.7 for ; Tue, 02 Apr 2019 08:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=nLft6fgWINpoqwsC2QGtRHcOyLPQA3XRP+iWeByyjUA=; b=VmT2xbBMuY0+kzJn/glaAKR36fmxK6bqTYrQAjisH6xGIZO+4/osoe/xfDt66Jb+2b +2K4BSSblOM+wRBp7j3ASOiCTIkyuWm6QH1e4ZCSNapxmAXlmRpoLoh2RojDiVbLuB62 nTLtI1t1YL5EA8zyjQRO5WVtu3XILDSrG0IOE/Ie801s3SbhEdUBS+H8pkSxY+sEwDfU SJKYyc5AYFuoddc22W/oEZNkSwL3Qg/NDm4vgDztEmmZVP4HcrGzh7fjwhpJJT+4wKn0 +XDs0gRo0CxoHDQsDB4tP4g+rodUsJnxgjyowSuXkDJfIQGi88PFBabdFf6kvX6kyvVt IFcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=nLft6fgWINpoqwsC2QGtRHcOyLPQA3XRP+iWeByyjUA=; b=M+QnDbLdeigrrvlubLF3ZOEnY9HIH5IXQvaOHGFMM/lFhTWyxbo9mm9AKQkBGZqFlq Vq19W5Js4NLM26BcHPR+VRdfHLq2dLcUK+DXEDuEjGl984d8Uyoc7otVKghg5AYGHLvm JEFucIiBv0pkNzVAQ74oI8XUszcouUSSvNhLB1ADZlNhnMJI5QW57j/USinOOBkHnojO 7aD8+ZbxDy01CRJtQZochtlfgQmKmN3luU4a1Y0R2+7gvVpRDQZ+GNWUoJxd0ZYqZeIj dq1y0qtBSnW4Stz7yFqKPTocii7NlNryRFJ6bTeH4NceUheCUkAFvZakRClbYpWjaSoA YbjQ== X-Gm-Message-State: APjAAAV+3VEU7Ab8nqLb/RGfZyHakYUYG97nImV9WUMork6lcaGqvq73 +wRMl1xM9vI1NE4DUIbB8D189ST+Z/o= X-Google-Smtp-Source: APXvYqy2Q86GV1Q3ivU22o+WWjxbwyIlue50WCzO+Nxv2k/iHSElG3TSITX0RBG8FJM+sLm2L/EHUw== X-Received: by 2002:ac8:925:: with SMTP id t34mr43637751qth.30.1554220270839; Tue, 02 Apr 2019 08:51:10 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id h24sm8666866qte.50.2019.04.02.08.51.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 08:51:10 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4BBBB12144D; Tue, 2 Apr 2019 12:51:08 -0300 (-03) Date: Tue, 2 Apr 2019 12:51:08 -0300 From: Alvaro Herrera To: Tom Lane Cc: Andres Freund , r.zharkov@postgrespro.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15727: PANIC: cannot abort transaction 295144144, it was already committed Message-ID: <20190402155108.GA17787@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <30650.1554219866@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-02, Tom Lane wrote: > Andres Freund writes: > >> 2019-04-01 15:27:38.829 +07 [7524] STATEMENT: UPDATE pgbench_accounts SET > >> abalance = 1 WHERE aid = 1; > >> 2019-04-01 15:27:38.829 +07 [7524] PANIC: cannot abort transaction > >> 400048276, it was already committed > > > But that's probably a separate issue. > > What that seems to indicate is that the "unexpected table_lock_tuple > status" error was thrown during commit, which seems pretty odd. AFAICS this error can only come from ExecDelete(), because the value 1 is TM_Invisible and the other callsites where the "unexpected table_lock_tuple" error appears use different wording for that one. Maybe it's the result of a deferred constraint being checked at that time ... maybe it's trying to honor an "on cascade delete" setting for an FK, and the affected tuple has already been updated or deleted? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services