How to insert a row into another table during an on conflict – Postgresql
I want to insert in a ManyToMany relationship (between 'fiche' and quality) a line (same principle as a log) when an insertion fails because the key is duplicated. example: insert into fiche (content) values ('toto') on conflict (content) do insert…