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 1gIF8h-0000Us-PY for pgsql-general@arkaria.postgresql.org; Thu, 01 Nov 2018 15:44:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIF8g-0000VM-BZ for pgsql-general@arkaria.postgresql.org; Thu, 01 Nov 2018 15:44:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIF8g-0000Ui-3Q for pgsql-general@lists.postgresql.org; Thu, 01 Nov 2018 15:44:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIF8d-0003NX-Po for pgsql-general@lists.postgresql.org; Thu, 01 Nov 2018 15:44:05 +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 wA1FhuNx018073; Thu, 1 Nov 2018 11:43:56 -0400 From: Tom Lane To: Alvaro Herrera cc: Karsten Hilbert , pgsql-general@lists.postgresql.org Subject: Re: backend crash on DELETE, reproducible locally In-reply-to: <20181101152723.zq2dtcgntmcmr4br@alvherre.pgsql> References: <20181101152723.zq2dtcgntmcmr4br@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 01 Nov 2018 12:27:23 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18071.1541087036.1@sss.pgh.pa.us> Date: Thu, 01 Nov 2018 11:43:56 -0400 Message-ID: <18072.1541087036@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > Ah, now this is interesting. Can you please supply the definition of > the table? I'm wondering if there is a partitioned table with an FK to > this one. I'm not quite seeing how come 'tup' is NULL there. Yeah, apparently we've passed a null OLD tuple to an RI_FKey_cascade_del trigger, which surely shouldn't happen. It'd be interesting to look at the set of triggers on this table. I don't entirely trust psql's \d to show us reality if there's something screwed up about the triggers, so in addition to \d output, could we see select * from pg_trigger where tgrelid = 'ref.auto_hint'::regclass; regards, tom lane