Re: [BUG?] check_exclusion_or_unique_constraint false negative
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Mihail Nikalayeu <mihailnikalayeu@gmail.com>
Cc: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>,
Peter Geoghegan <pg@bowt.ie>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Andres Freund <andres@anarazel.de>
Date: 2025-08-25T05:02:12Z
Lists: pgsql-hackers
On Fri, Aug 22, 2025 at 9:12 PM Mihail Nikalayeu <mihailnikalayeu@gmail.com> wrote: > > Amit, a few more explanations related to your message. > > > IIUC, the problem you are worried about can happen with DELETE+INSERT > > in the same transaction on the subscriber, right? > > Technically, yes - this can occur during a single UPDATE, as well as a > DELETE followed by an INSERT of the same key within the same > transaction (which is effectively equivalent to an UPDATE). > BTW, then isn't it possible that INSERT happens on a different page? -- With Regards, Amit Kapila.
Commits
-
Add support for INSERT ... ON CONFLICT DO NOTHING/UPDATE.
- 168d5805e4c0 9.5.0 cited