Re: MERGE fails to reject source references in NOT MATCHED BY SOURCE actions

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: Tender Wang <tndrwang(at)gmail(dot)com>, Joao Rito <joaovictor(dot)rito(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: MERGE fails to reject source references in NOT MATCHED BY SOURCE actions
Date: 2026-11-23 10:46:05
Message-ID: awQZYuoJ4hT3z9Ae@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2026-Nov-23, Dean Rasheed wrote:

> OTOH, it also seems pretty harmless. Fixing it risks breaking existing
> queries that currently work (the Vars just return NULL, and the result
> is arguably correct). So the fix would need to be flagged in the
> release notes as a breaking change.
>
> Perhaps we should just fix it in master?

Agreed on a master-only change.

--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
"I'm impressed how quickly you are fixing this obscure issue. I came from
MS SQL and it would be hard for me to put into words how much of a better job
you all are doing on [PostgreSQL]."
Steve Midgley, http://archives.postgresql.org/pgsql-sql/2008-08/msg00000.php

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2026-11-23 10:53:24 Re: MERGE fails to reject source references in NOT MATCHED BY SOURCE actions
Previous Message alvherre@kurilemu.de 2026-11-23 10:43:52 Re: Bug in logical decoding with DDL and subtransactions