Skip to content

Commit 3fe3165

Browse files
committed
Don't abort additional INSERTs when hitting first conflict
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 timescale#7672
1 parent caa6568 commit 3fe3165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes/hypertable_modify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ ExecModifyTable(CustomScanState *cs_node, PlanState *pstate)
728728
cds->skip_current_tuple = false;
729729
if (node->ps.instrument)
730730
node->ps.instrument->ntuples2++;
731-
return NULL;
731+
continue;
732732
}
733733

734734
/* No more tuples to process? */

0 commit comments

Comments
 (0)