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 1iIew9-0002od-3j for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 20:21: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 1iIew7-0006kL-NU for pgsql-general@arkaria.postgresql.org; Thu, 10 Oct 2019 20:21: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIew5-0006k1-Gg for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 20:21:23 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iIew1-0004VA-17 for pgsql-general@lists.postgresql.org; Thu, 10 Oct 2019 20:21:20 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AAFFE21C1C; Thu, 10 Oct 2019 16:21:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 10 Oct 2019 16:21:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=jm5IOSnBNU21z7wK1skdcwiZWZH tMlNvhUXck4tApJg=; b=jgG3RZdMCkpYy1xDqmfX5J+G/SWYbdJfnVptaVlmw2z HiZe8VYMO9DAUfZa7niP2anY/tnOVsT2zz7hpqY+jPZYlAOZiUsfwk3iPxG++wsJ ij7c2KOU5xdFAyK7YBo29cSCbl9o/UMCqdVX9oCJVD3KvX79LdsyYgehxQ0T7FkZ X7j+nJgy2J4m1YjyOCt4KX8BYNGqZrujuyJ8Y0NvuCl8RyVZDTrVFcEtOC31RUfc 8d5zpgxYrV9cyN+cWz5ouZBOQTVElB27bRQBsiFKVNDTshRXEIrP5J/ZQeUP9MzP vkKW0bBWheHkmsc2gS8TocjaPoKSmudhp4WXNin6dfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=jm5IOS nBNU21z7wK1skdcwiZWZHtMlNvhUXck4tApJg=; b=R5+HLWz7iVDM/uR9JGupCn wWGF+hVlcG4IxEl6OiBq25C46iq0YF8v/umx9cYNHTcHQFHh1EXcBuRHFromEccj 53K//A4tmpKyViNJr+qF7Lm6e2hw9osiCuKhfKIB9Dle2dI2rpDsPj9EorVqWkXx YJcZ57IUzTg7CmRNLg2SRuc07AdX65ZoiToHIxmkalzhjt6x9+JZYMavkLj3nDyf ogJfC1kBhqbniaF8uyz52lZpgNEWjzwiPCgKExk271/5s/t53CyG3hsuuqHD6RUe SOluJrCXsv58euIHppp6jzFVsny92Joc9G9506SVxKRiqy3mTkRGwRXrNQnUretg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieefgdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudekrddvfeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 16750D60066; Thu, 10 Oct 2019 16:21:15 -0400 (EDT) Date: Thu, 10 Oct 2019 13:21:13 -0700 From: Andres Freund To: Tom Lane Cc: Andreas Joseph Krogh , pgsql-general@lists.postgresql.org Subject: Re: Segmentation fault with PG-12 Message-ID: <20191010202113.caxtj6sslxqpb7li@alap3.anarazel.de> References: <877e5duq7t.fsf@alap4.lan> <22776.1570735958@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22776.1570735958@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-10-10 15:32:38 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2019-10-09 10:16:37 -0400, Tom Lane wrote: > >> 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=$1, created=$2\nWHERE entity_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. > > > It looks like this could "just" be another report of #16036, which was > > already fixed in: > > commit d986d4e87f61c68f52c68ebc274960dc664b7b4e > > Author: Andres Freund > > Date: 2019-10-04 11:59:34 -0700 > > Fix crash caused by EPQ happening with a before update trigger present. > > Bingo. I can reproduce the crash (using concurrent updates of the same > table row, in the schema Andreas sent off-list) on the predecessor of > that commit, but on that commit it's fine. Cool, and thanks for checking.