Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pW0UH-0000c5-MI for pgsql-bugs@arkaria.postgresql.org; Sat, 25 Feb 2023 19:45:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pW0UG-0000sd-HA for pgsql-bugs@arkaria.postgresql.org; Sat, 25 Feb 2023 19:45:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pW0UG-0000sS-8q for pgsql-bugs@lists.postgresql.org; Sat, 25 Feb 2023 19:45:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pW0UE-00028k-9r for pgsql-bugs@lists.postgresql.org; Sat, 25 Feb 2023 19:45:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 31PJjXuq1408833; Sat, 25 Feb 2023 14:45:33 -0500 From: Tom Lane To: Andres Freund cc: Michael Paquier , exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17800: ON CONFLICT DO UPDATE fails to detect incompatible fields that leads to a server crash In-reply-to: <20230224235704.jz5ayb37x6miml6v@awork3.anarazel.de> References: <586533.1677178414@sss.pgh.pa.us> <20230223210012.4qigvo6sryn2syu5@awork3.anarazel.de> <718944.1677189963@sss.pgh.pa.us> <20230223233636.zkt4tqzsc4b6ekwn@awork3.anarazel.de> <20230224015417.75yimxbksejpffh3@awork3.anarazel.de> <851179.1677259566@sss.pgh.pa.us> <20230224174412.xk3y364t6a2udp5t@awork3.anarazel.de> <1060251.1677276763@sss.pgh.pa.us> <20230224225357.2orpiokrfpjllfm4@awork3.anarazel.de> <1073422.1677282550@sss.pgh.pa.us> <20230224235704.jz5ayb37x6miml6v@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 24 Feb 2023 15:57:04 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1408831.1677354333.1@sss.pgh.pa.us> Date: Sat, 25 Feb 2023 14:45:33 -0500 Message-ID: <1408832.1677354333@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2023-02-24 18:49:10 -0500, Tom Lane wrote: >> Maybe Exec{Create|Push}ExprSetupSteps? > WFM. >> I figured it was important to leave a note that that was intentional. >> Doesn't have to look exactly like that, though. > I'd just move it to the the loop evaluating the non resjunk columns. Done like that. regards, tom lane