Fix MERGE tuple count with DO NOTHING

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 3d45edcef0e141f2a17a21d0411efa889f843b00
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2022-11-17T17:56:11Z
Releases: 15.2
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

Files

PathChange+/−
src/backend/executor/nodeModifyTable.c modified +1 −1

Discussion