The immediate value is the have a way to distinguish and ignore insert failures when they are caused by by a constraint violation.
The first use case would be in usrloc when we write to db and use dmq replication.
I would add a param to usrloc module "db_insert_update" defaulting to 0 but that could be set to 1, shit would already work completely with mysql
However with postgres, it would remove any unwanted errors and retries when syncing from dmq for example, I saw other posts about such errors.
This way usrloc would only retry it there is a real failure not a constraint violation.
Then we could plan for a second step to implement the "DO UPDATE" instead of just "DO NOTHING"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.