Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ff5aa1

Browse files
committed
Fix MERGE tuple count with DO NOTHING
Reporting tuples for which nothing is done is useless and goes againstthe documented behavior, so don't do it.Backpatch to 15.Reported by: Luca FerrariDiscussion:https://postgr.es/m/CAKoxK+42MmACUh6s8XzASQKizbzrtOGA6G1UjzCP75NcXHsiNw@mail.gmail.com
1 parent813492d commit6ff5aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/executor/nodeModifyTable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ ExecMergeMatched(ModifyTableContext *context, ResultRelInfo *resultRelInfo,
27992799
{
28002800
caseTM_Ok:
28012801
/* all good; perform final actions */
2802-
if (canSetTag)
2802+
if (canSetTag&&commandType!=CMD_NOTHING)
28032803
(estate->es_processed)++;
28042804

28052805
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp