Description
CockroachDB introduced a bug in the that affectsUPSERT and INSERT … ON CONFLICT DO UPDATE SET x = excluded.x statements involving more than 10,000 rows. This bug results in the following behavior:
- The execution of a single
UPSERTstatement will stop, without a visible error, after reaching 10,000 rows. The reported number of affected rows will be incorrect, reported as 0. - Executing a single
UPSERT … RETURNINGstatement will return at most 10,000 rows.
UPSERT handling. A fix (#54418) is available in the .
Statement
To track this issue the pull request correcting the aforementioned bugs.Mitigation
This regression is critical as it could silently corrupt SQL data without remediation. All unaffected customers are urged to skip releases v20.1.4 and v20.1.5 or ensure that their application code processes at most 10,000 rows perUPSERT statement. Customers running versions v20.1.4 or v20.1.5 are strongly encouraged to upgrade to .

