pgsql: Fix MERGE tuple count with DO NOTHING

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix MERGE tuple count with DO NOTHING
Date: 2022-11-17 17:57:14
Message-ID: E1ovj8T-000dKO-F6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix MERGE tuple count with DO NOTHING

Reporting tuples for which nothing is done is useless and goes against
the documented behavior, so don't do it.

Backpatch to 15.

Reported by: Luca Ferrari
Discussion: https://postgr.es/m/CAKoxK+42MmACUh6s8XzASQKizbzrtOGA6G1UjzCP75NcXHsiNw@mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3d45edcef0e141f2a17a21d0411efa889f843b00

Modified Files
--------------
src/backend/executor/nodeModifyTable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-11-17 21:55:02 pgsql: Replace RelationOpenSmgr() with RelationGetSmgr().
Previous Message Peter Geoghegan 2022-11-17 17:35:00 pgsql: Use correct type name in comments about freezing.