Quantcast
Channel: Deadlock with multi-row INSERTs despite ON CONFLICT DO NOTHING - Database Administrators Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Erwin Brandstetter for Deadlock with multi-row INSERTs despite ON...

The ON CONFLICT clause can prevent duplicate key errors. There can still be friction with concurrent transactions trying to enter the same keys or update the same rows. So it's no insurance against...

View Article



Deadlock with multi-row INSERTs despite ON CONFLICT DO NOTHING

SetupI have a bulk insert function set_interactions(arg_rows text) that looks like this:with inserts as ( insert into interaction ( thing_id, associate_id, created_time) select t->>'thing_id',...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images