I want to insert rows into a table and return the identifier of the inserted row. Whenever a unique contraint is conflicted, I still want to return the identifier.
I ran the following query:
insert into operations.my_table (domain, email) 
VALUES ('my_domain', 'email@my_domain') 
ON CONFLICT do nothing 
returning my_table_id
However, it does not return anything on conflict.
