Is postgres 9.5+ on conflict(primary key) faster than where not exists? Is postgres 9.5+ on conflict(primary key) faster than where not exists? postgresql postgresql