Resync primary key field in postgres.