Fixed Postgres providers not properly detecting primary key conflicts