-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: INSERT ... ON CONFLICT DO NOTHING error #20985
Labels
C-question
A question rather than an issue. No code/spec/doc change needed.
O-community
Originated from the community
Comments
@baitxo, can you give a complete example including the table schema that's being inserted into as well as example values? |
Hi @jordanlewis, Hope it helps,
|
@jordanlewis friendly ping. Still happening on the latest unstable release: |
Sorry for the delay. You currently need to explicitly specify the conflict columns:
|
This was referenced Jan 2, 2018
Thanks @jordanlewis! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-question
A question rather than an issue. No code/spec/doc change needed.
O-community
Originated from the community
Server log (just one node on the cluster):
Expected (PG behavior):
INSERT ... ON CONFLICT DO NOTHING
executes normallyCurrent state:
INSERT ... ON CONFLICT DO NOTHING
raises:ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification
The text was updated successfully, but these errors were encountered: