Re: Conflict detection for multiple_unique_conflicts in logical replication

From: Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Subject: Re: Conflict detection for multiple_unique_conflicts in logical replication
Date: 2025-03-21 11:13:40
Message-ID: CABdArM4xag8qW=9DnSy4DizV+YwSWis8rXdD7NdHqAxd4H8rYw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Mar 21, 2025 at 3:38 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Fri, Mar 21, 2025 at 1:48 PM Zhijie Hou (Fujitsu)
> <houzj(dot)fnst(at)fujitsu(dot)com> wrote:
> >
> > On Fri, Mar 21, 2025 at 12:50 PM Nisha Moond wrote:
> >
> > > Thanks, Hou-san, for the review and fix patches. I’ve incorporated
> > > your suggestions.
> > > Attached are the v7 patches, including patch 002, which implements
> > > stats collection for 'multiple_unique_conflicts' in pg_stat_subscription_stats.
> >
> > Thanks for updating the patches.
> >
> > Here are some more comments:
> >
> > 1.
> >
> > The comments atop of ReportApplyConflict() should be updated to reflect the
> > updates made to the input parameters.
> >
>
> Right, I also noticed this and updated it in the attached. Apart from
> this, I have made a number of cosmetic changes in the attached. Please
> review and include it in the next version unless you see any problem
> with it.
>

Thanks for the review.

I’ve incorporated the changes and also addressed Hou-san’s comments
from [1] with suggested changes.

Attached are the v8 patches.

[1] https://www.postgresql.org/message-id/OS0PR01MB57169BA3CB76A79B30223E3894DB2%40OS0PR01MB5716.jpnprd01.prod.outlook.com

--
Thanks,
Nisha

Attachment Content-Type Size
v8-0001-Implement-the-conflict-detection-for-multiple_uni.patch application/x-patch 25.0 KB
v8-0002-Stats-collection-for-the-multiple_unique_conflict.patch application/x-patch 6.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nazir Bilal Yavuz 2025-03-21 11:15:43 Re: Improve monitoring of shared memory allocations
Previous Message Yura Sokolov 2025-03-21 11:02:19 Re: Get rid of WALBufMappingLock