From: Viktor Holmberg <v@viktorh.net>
To: pgsql-hackers@postgresql.org
Subject: Re: Allow ON CONFLICT DO UPDATE to return EXCLUDED values
Date: Tue, 7 Oct 2025 15:55:49 +0200
Message-ID: <fb18cbb9-32ca-46ea-b2ff-a7e7f20e883c@Spark> (raw)
I’ve looked through this patch. As far as I can tell, everything looks good, working and well commented.
The only nitpick I could find is a mispelling "EXLCUDED" → "EXCLUDED" in src/test/regress/expected/returning.out:464.
A maybe bigger question, is it nice that EXCLUDED is null when no conflict occurred? I can see the logic, but I think ergonomics wise it’d be nicer to have the proposed values in EXCLUDED, no matter what happened later. Then one can check EXCLUDED.value = NEW.value to see if one’s changes were added, for example.
/Viktor
On 7 Oct 2025 at 15:43 +0200, Dean Rasheed <dean.a.rasheed@gmail.com>, wrote:
> Rebased version attached, following 904f6a593a0.
>
> Regards,
> Dean
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: v@viktorh.net
Subject: Re: Allow ON CONFLICT DO UPDATE to return EXCLUDED values
In-Reply-To: <fb18cbb9-32ca-46ea-b2ff-a7e7f20e883c@Spark>
References: <fb18cbb9-32ca-46ea-b2ff-a7e7f20e883c@Spark>
* 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