Skip to content

Commit

Permalink
Don't abort additional INSERTs when hitting first conflict
Browse files Browse the repository at this point in the history
When an INSERT with ON CONFLICT DO NOTHING hits the first conflicts
it would abort additional INSERTS following the INSERT triggering
the DO NOTHING clause leading to missed INSERTs.

Fixes #7672
  • Loading branch information
svenklemm committed Feb 7, 2025
1 parent caa6568 commit 3fe3165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/hypertable_modify.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ ExecModifyTable(CustomScanState *cs_node, PlanState *pstate)
cds->skip_current_tuple = false;
if (node->ps.instrument)
node->ps.instrument->ntuples2++;
return NULL;
continue;
}

/* No more tuples to process? */
Expand Down

0 comments on commit 3fe3165

Please sign in to comment.