Skip to content

sql: support INSERT ... ON CONFLICT ON CONSTRAINT #28161

@nvb

Description

@nvb

Postgres supports an extension of INSERT ... ON CONFLICT where a constraint name is given instead of a set of columns.

We currently don't support this, but we should:

| ON CONSTRAINT constraint_name { return unimplemented(sqllex, "on conflict on constraint") }

This would have been a solution for #27981 if we supported it.

cc. @knz for triage. Perhaps @emsal1863 would be interested in working on this?

Metadata

Metadata

Assignees

Labels

A-sql-mutationsMutation statements: UPDATE/INSERT/UPSERT/DELETE.A-sql-pgcompatSemantic compatibility with PostgreSQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries TeamX-anchored-telemetryThe issue number is anchored by telemetry references.

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions