> On Sep 24, 2022, at 09:04, Barry Kimelman <blkimel...@gmail.com> wrote: > Unfortunately, that is exactly what I need to do, I need to modify the data > on the 2nd request so that it also gets inserted. The best approach is to optimistically insert the row, catch the error if there's a conflict, and modify the data and try again. If a row with the same conflict can come from multiple sessions, you'll need to decide how to handle the case that some other session "wins" and inserts the row, and you get a conflict again.
- problem with on conflict / do update using psql 14.4 Barry Kimelman
- Re: problem with on conflict / do update using psql... Steve Baldwin
- Re: problem with on conflict / do update using ... Barry Kimelman
- Re: problem with on conflict / do update us... Christophe Pettus
- Re: problem with on conflict / do updat... Barry Kimelman
- Re: problem with on conflict / do ... Christophe Pettus
- Re: problem with on conflict /... Barry Kimelman
- Re: problem with on confli... Christophe Pettus
- Re: problem with on confli... Barry Kimelman
- Re: problem with on confli... Christophe Pettus
- Re: problem with on confli... Adrian Klaver
- Re: problem with on confli... David G. Johnston
- Re: problem with on conflict / do update using psql... David G. Johnston
- Re: problem with on conflict / do update using ... Barry Kimelman