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 1gKZ7v-0002VR-PZ for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Nov 2018 01:28:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKZ7t-0006PS-1I for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Nov 2018 01:28:53 +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 1gKZ7s-0006PL-RI for pgsql-bugs@lists.postgresql.org; Thu, 08 Nov 2018 01:28:52 +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 1gKZ7q-0006Pg-Ei for pgsql-bugs@lists.postgresql.org; Thu, 08 Nov 2018 01:28:52 +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 wA81ShKq022086; Wed, 7 Nov 2018 20:28:43 -0500 From: Tom Lane To: =?UTF-8?Q?Frederico_Costa_Galv=c3=a3o?= cc: Michael Paquier , Amit Langote , kanwei@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form Subject: Re: BUG #15489: Segfault on DELETE In-reply-to: References: <15489-f1158ddcc2584a8e@postgresql.org> <26334113-2b97-db62-b72c-8066c2dedbb5@lab.ntt.co.jp> <20181107071409.GA17169@paquier.xyz> Comments: In-reply-to =?UTF-8?Q?Frederico_Costa_Galv=c3=a3o?= message dated "Wed, 07 Nov 2018 23:10:18 -0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22084.1541640523.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 07 Nov 2018 20:28:43 -0500 Message-ID: <22085.1541640523@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?UTF-8?Q?Frederico_Costa_Galv=3Dc3=3Da3o?=3D writes: > I stumbled upon this issue yesterday, and trying to reduce and pinpoint = > it, I managed to get to this: Yeah, this looks like the expand_tuple bug: you've got a foreign-key trigger and a tuple that doesn't match the table rowtype anymore. This example doesn't crash for me in HEAD or 11.1. regards, tom lane