Fix MERGE tuple count with DO NOTHING
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 17 Nov 2022 17:56:11 +0000 (18:56 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 17 Nov 2022 17:56:11 +0000 (18:56 +0100)
commit6ff5aa129933fbde034c0d21c28cf05e052511f9
tree59348a6b39759f7ad906225469124e813e915382
parent813492dacceecb752725b7e370ac7f5748b1edf9
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
src/backend/executor/nodeModifyTable.c