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*

8
  • Can we have the exact statements? The ones you show are syntactically incorrect. Commented Jul 3, 2020 at 11:03
  • It's possible that you've run into this problem, which will be fixed in 12.4 (and 11.9, 10.14 etc.). Commented Jul 3, 2020 at 11:56
  • Try with a single INSERT … ON CONFLICT DO UPDATE … RETURNING … command. Commented Jul 3, 2020 at 11:59
  • @LaurenzAlbe I added them. Commented Jul 3, 2020 at 12:24
  • @CL. I need a correct sum of data from both requests, not just data of one of them. This is the first time I change isolation levels in transactions and actually think about them in my entire career of 7 years. This is a huge disappoint. Commented Jul 3, 2020 at 12:27