Postgres doesn't have a single upsert command. We need to change setXXX semantic from upsert to update, requiring all rows are present , return error if not.
for now limits the error handling to always error+retry on update fails at conflict(e.g. unique constraint). In the future, we may support more options, like DO NOTHING or set update etc.
in the future also support insert mode
in the future we can even support upsert mode -- using multiple SQL command in Postgres