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 1pULLl-0001H9-JO for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Feb 2023 05:38:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pULLk-0001fs-9h for pgsql-bugs@arkaria.postgresql.org; Tue, 21 Feb 2023 05:38:00 +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 1pULLk-0001dq-1E for pgsql-bugs@lists.postgresql.org; Tue, 21 Feb 2023 05:38:00 +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 1pULLi-0003x1-1L for pgsql-bugs@lists.postgresql.org; Tue, 21 Feb 2023 05:37:59 +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 31L5btcA3897701; Tue, 21 Feb 2023 00:37:55 -0500 From: Tom Lane To: Michael Paquier cc: 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: <3892120.1676954966@sss.pgh.pa.us> References: <17800-ff90866b3906c964@postgresql.org> <3892120.1676954966@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 20 Feb 2023 23:49:26 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3897699.1676957875.1@sss.pgh.pa.us> Date: Tue, 21 Feb 2023 00:37:55 -0500 Message-ID: <3897700.1676957875@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I think there may be two different bugs here. The coredump in the > ON CONFLICT case goes back to v11 for me (and v10 doesn't support > the primary-key-on-partition case at all, so this error may be > aboriginal to the feature). But I only see this "wrong type" failure > in v14 and later. I didn't try bisecting yet. Bisecting produced some interesting results: the "wrong type" failure has existed for a pretty long time on HEAD. The reason I don't see it on v13 etc is that commits 3f7323cbb et al fixed it in those branches. That's probably accidental, but I'm too tired to poke at it more tonight. regards, tom lane