pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Luca Ferrari <fluca1978@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: MERGE output doubt
Date: Thu, 17 Nov 2022 18:57:33 +0100
Message-ID: <20221117175733.yd3g5usesadm5sg3@alvherre.pgsql> (raw)
In-Reply-To: <20221117113651.wlgmdrx653tqihzt@alvherre.pgsql>

On 2022-Nov-17, Alvaro Herrera wrote:

> On 2022-Oct-20, Luca Ferrari wrote:
> 
> > I was expecting an output tag like "MERGE 0" since both branches have
> > "do nothing", so no tuples should be updated at all on the target
> > table.
> 
> Hmm, yeah, it should report 0 tuples, according to the documentation.
> AFAICS this patch fixes it, will push shortly.

Pushed, thanks for reporting.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Someone said that it is at least an order of magnitude more work to do
production software than a prototype. I think he is wrong by at least
an order of magnitude."                              (Brian Kernighan)





view thread (3+ messages)

Message-ID: <20221117175733.yd3g5usesadm5sg3@alvherre.pgsql>
Permalink:  ../20221117175733.yd3g5usesadm5sg3@alvherre.pgsql/
Also on:    postgresql.org/message-id/20221117175733.yd3g5usesadm5sg3@alvherre.pgsql

 · 

reply

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-general@postgresql.org
  Cc: alvherre@alvh.no-ip.org, fluca1978@gmail.com
  Subject: Re: MERGE output doubt
  In-Reply-To: <20221117175733.yd3g5usesadm5sg3@alvherre.pgsql>
  References: <20221117113651.wlgmdrx653tqihzt@alvherre.pgsql> <20221117175733.yd3g5usesadm5sg3@alvherre.pgsql>

* 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