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 1oMBfd-0008L0-Tt for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2022 17:08:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oMBfc-0008KP-QZ for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Aug 2022 17:08:32 +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 1oMBfc-0008KG-IZ for pgsql-bugs@lists.postgresql.org; Thu, 11 Aug 2022 17:08:32 +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 1oMBfa-0006QH-IT for pgsql-bugs@lists.postgresql.org; Thu, 11 Aug 2022 17:08:32 +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 27BH80Gx020385; Thu, 11 Aug 2022 13:08:00 -0400 From: Tom Lane To: Alvaro Herrera cc: Richard Guo , borz_off@cs.msu.su, PostgreSQL mailing lists Subject: Re: BUG #17579: 15beta2: strange error when trying to use MERGE statement as a CTE In-reply-to: <20220811162721.u5dx5w6jplgzj25z@alvherre.pgsql> References: <20220811162721.u5dx5w6jplgzj25z@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 11 Aug 2022 18:27:21 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20383.1660237680.1@sss.pgh.pa.us> Date: Thu, 11 Aug 2022 13:08:00 -0400 Message-ID: <20384.1660237680@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Here's a patch. I kept the location in the CTE bit, because it's better > than nothing. No location hint is possible for the COPY one, as far as > I can see. OK by me. regards, tom lane