Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Have you considered a trigger? Commented May 8, 2018 at 19:21
  • 2
    There are many ways. The best one depends on your undisclosed requirements. The outstanding virtue of ON CONFLICT is to handle race conditions under concurrent write load reliably ... Commented May 9, 2018 at 2:33
  • 1
    @ErwinBrandstetter Could you please elaborate on what any of these many ways are? Commented Dec 22, 2018 at 2:48
  • @EliecerThoms: I didn't add an answer because the question is ambiguous in multiple ways. Depending on actual requirements, different answers apply. I elaborated now, mostly to illustrate why you wouldn't want to go there at all. Commented Dec 28, 2018 at 0:44