INSERT .. ON CONFLICT can be ran as a bulk operation:
create table test(id int);insert into test(id) values (1), (2), (3), (4);
Unless you mean you don't want to run this for every table?
Thanks,Jordan Deitchhttp://id.rsa.pub