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 1iIClj-0000Dg-LR for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 14:16:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iICli-0007Jz-Ck for pgsql-general@arkaria.postgresql.org; Wed, 09 Oct 2019 14:16:46 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iICli-0007Jo-2W for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2019 14:16:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIClf-0002Pk-9f for pgsql-general@lists.postgresql.org; Wed, 09 Oct 2019 14:16:45 +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 x99EGbkE021110; Wed, 9 Oct 2019 10:16:37 -0400 From: Tom Lane To: Andreas Joseph Krogh cc: pgsql-general@lists.postgresql.org, Andres Freund Subject: Re: Segmentation fault with PG-12 In-reply-to: References: Comments: In-reply-to Andreas Joseph Krogh message dated "Wed, 09 Oct 2019 13:21:20 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21108.1570630597.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 09 Oct 2019 10:16:37 -0400 Message-ID: <21109.1570630597@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andreas Joseph Krogh writes: > Attached is output from "bt full". Is this helpful? = Well, it shows that the failure is occurring while trying to evaluate a variable in a trigger's WHEN clause during "UPDATE origo_email_delivery SET folder_id=3D$1, created=3D$2\nWHERE entit= y_id IN ($3)\nRETURNING entity_id" And I'd bet that the root cause is something to do with Andres' tuple slot work. But (at least to my eye) it's not apparent exactly what's wrong. Can you show us the table definition and associated trigger definitions for origo_email_delivery? This doesn't seem to correlate with your original report, btw, as that claimed the crash was during COMMIT. regards, tom lane