Re: [BUG?] check_exclusion_or_unique_constraint false negative - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: [BUG?] check_exclusion_or_unique_constraint false negative
Date
Msg-id CAA4eK1KKh1VyBSkipxRZp=2QWj6U6McyUOMmqqmofGLUGDh4QQ@mail.gmail.com
Whole thread Raw
In response to Re: [BUG?] check_exclusion_or_unique_constraint false negative  (Mihail Nikalayeu <mihailnikalayeu@gmail.com>)
Responses Re: [BUG?] check_exclusion_or_unique_constraint false negative
List 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.



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [BUG?] check_exclusion_or_unique_constraint false negative
Next
From: shveta malik
Date:
Subject: Re: Conflict detection for update_deleted in logical replication