Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJ1kY-0006lA-JB for pgsql-general@arkaria.postgresql.org; Sat, 03 Nov 2018 19:38:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJ1kV-0002JP-UM for pgsql-general@arkaria.postgresql.org; Sat, 03 Nov 2018 19:38:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJ1kV-0002Il-IO for pgsql-general@lists.postgresql.org; Sat, 03 Nov 2018 19:38:23 +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.89) (envelope-from ) id 1gJ1kT-00069Q-4i for pgsql-general@lists.postgresql.org; Sat, 03 Nov 2018 19:38:22 +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 wA3JcEAp023469; Sat, 3 Nov 2018 15:38:14 -0400 From: Tom Lane To: obouda@email.cz cc: "Alvaro Herrera" , pgsql-general@lists.postgresql.org, "Karsten Hilbert" Subject: Re: backend crash on DELETE, reproducible locally In-reply-to: <4kp.XAMr.3k5V4ORoB1t.1RtVIt@seznam.cz> References: <20181101160007.GJ2954@hermes.hilbert.loc> <20181101152723.zq2dtcgntmcmr4br@alvherre.pgsql> <18072.1541087036@sss.pgh.pa.us> <32192.1541217418@sss.pgh.pa.us> <4kp.XAMr.3k5V4ORoB1t.1RtVIt@seznam.cz> Comments: In-reply-to message dated "Sat, 03 Nov 2018 20:19:19 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <23467.1541273894.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sat, 03 Nov 2018 15:38:14 -0400 Message-ID: <23468.1541273894@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk writes: > we reached the exactly same problem after upgrading to PostgreSQL 11 - the > server crashed on a DELETE statement with a trigger. We also observed an > AFTER DELETE trigger receiving NULL values in OLD. Now I see the problem > seems to be solved (theoretically). Unfortunately, we are not able to build > the server with the patch, so we cannot confirm that. However, when we just > copied the database (within the same server), the same DELETE executed on > the copy with no problems. Yeah, dump/reload would make the problem go away. > I would like to ask, however: could the same problem arise from an UPDATE > statement (also on a table with an AFTER trigger), or would that be another > bug (technical details below)? Same bug. regards, tom lane