DO NOTHING is SQL conflict-handling syntax that skips an INSERT when a uniqueness constraint is violated. In an INSERT ... ON CONFLICT statement, it targets the primary index by default, making a repeated insert idempotent instead of raising an error. section 3.4.1
Ignore a duplicate primary key
INSERT INTO prices VALUES (1, 11.59, '2018-12-01', '2019-01-01') ON CONFLICT DO NOTHING; A second execution skips the conflicting row. This avoids an error, but it may also leave an existing row unchanged when a replacement or corrected insert was intended. section 3.4.1
INSERT INTO prices VALUES (1, 11.59, '2018-12-01', '2019-01-01') ON CONFLICT DO NOTHING;
Inspect the compact INSERT form that suppresses a uniqueness conflict. section 3.4.1
