I hadn't noticed earlier, but CockroachDB 22.1 has introduced `ON CONFLICT .. ON CONSTRAINT` support: - https://github.com/cockroachdb/cockroach/issues/28161 - https://github.com/cockroachdb/cockroach/pull/73460 We're currently emulating it if the constraint meta data is available, i.e. if we can replace it by a column list.