Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upPostgres ON CONFLICT DO NOTHING #583
Comments
This comment has been minimized.
|
@sgrif worked on supporting Do you expect to get a return value with all the skipped rows? |
This comment has been minimized.
Boscop
commented
Jan 20, 2017
|
Not necessary. I just want to make sure that all tags are in the table after the query. |
killercup
added
the
enhancement
label
Jan 20, 2017
This comment has been minimized.
|
Duplicate of #196 |
sgrif
closed this
Feb 2, 2017
This comment has been minimized.
|
We just ran into a case where we need this for our production application using a mix of How much work would it be for me to implement this? |
This comment has been minimized.
|
@emk If you really need this, you can use custom psql functions with sql_function! |
Boscop commentedJan 20, 2017
•
edited
How can I do something like:
with diesel with postgres as backend.
Basically I want to insert all except the ones that are already in the table.
Without
ON CONFLICT DO NOTHINGit would unroll and not insert any if one is already in the table.