From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Richard Guo <guofenglinux@gmail.com>
Cc: borz_off@cs.msu.su, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17579: 15beta2: strange error when trying to use MERGE statement as a CTE
Date: Thu, 11 Aug 2022 09:37:08 -0400
Message-ID: <481803.1660225028@sss.pgh.pa.us> (raw)
In-Reply-To: <20220811114020.li7sp32bxqsnlx7n@alvherre.pgsql>
References: <20220811114020.li7sp32bxqsnlx7n@alvherre.pgsql>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2022-Aug-11, Richard Guo wrote:
>> +1 to disallow it for now.
> This patch does that.
The parse error location seems quite oddly chosen. Can you make
it point at the MERGE instead? I think exprLocation(cte->ctequery)
might work, but not sure.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, guofenglinux@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17579: 15beta2: strange error when trying to use MERGE statement as a CTE
In-Reply-To: <481803.1660225028@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox