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

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 16:27:21
Message-ID: 20220811162721.u5dx5w6jplgzj25z@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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.

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/

Attachment Content-Type Size
v2-0001-Reject-MERGE-in-CTEs-and-COPY.patch text/x-diff 3.6 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2022-08-11 17:08:00 Re: BUG #17579: 15beta2: strange error when trying to use MERGE statement as a CTE
Previous Message PG Bug reporting form 2022-08-11 15:51:40 BUG #17582: Error: Package: gdal-libs-1.11.4-12.rhel7.x86_64 (@pgdg11)