Re: BUG #17579: 15beta2: strange error when trying to use MERGE statement as a CTE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, borz_off(at)cs(dot)msu(dot)su, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17579: 15beta2: strange error when trying to use MERGE statement as a CTE
Date: 2022-08-11 13:37:08
Message-ID: 481803.1660225028@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2022-08-11 13:53:33 Re: BUG #17206: the function array_cat(anyarray, anyarray) does not exist
Previous Message Alvaro Herrera 2022-08-11 11:40:20 Re: BUG #17579: 15beta2: strange error when trying to use MERGE statement as a CTE