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 1gX8hy-0003j3-Ud for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Dec 2018 17:54: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 1gX8hx-0006ne-KP for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Dec 2018 17:54:05 +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 1gX8hx-0006nN-9k for pgsql-bugs@lists.postgresql.org; Wed, 12 Dec 2018 17:54:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gX8hu-0003f6-TK for pgsql-bugs@postgresql.org; Wed, 12 Dec 2018 17:54:04 +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 wBCHrwkv001190; Wed, 12 Dec 2018 12:53:58 -0500 From: Tom Lane To: Andres Freund cc: Bezverhijs Eduards , "pgsql-bugs@postgresql.org" Subject: Re: segmentation fault with simple UPDATE statement (postgres 10.5) In-reply-to: <20181212171616.6kxyhcf4hwllff5k@alap3.anarazel.de> References: <15361.1544631197@sss.pgh.pa.us> <20181212171616.6kxyhcf4hwllff5k@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 12 Dec 2018 09:16:16 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1188.1544637238.1@sss.pgh.pa.us> Date: Wed, 12 Dec 2018 12:53:58 -0500 Message-ID: <1189.1544637238@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > Looking as to why that reference isn't corrected. It's the bare Param that's the problem; the planner should've converted that to a Var referencing the Param evaluated in the child plan node. Working on patch now. regards, tom lane