Re: DOC: Minor updates for logical replication conflicts

From: shveta malik <shveta(dot)malik(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, shveta malik <shvetamalik(at)gmail(dot)com>
Subject: Re: DOC: Minor updates for logical replication conflicts
Date: 2026-12-01 10:14:50
Message-ID: CAJpy0uBN2+P6NVJqT8ev+79DE1szahNCUG08zZLdUGU=muUOEw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 27, 2026 at 2:53 AM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> Hi Shveta. Thanks for your review and suggestions.
>
> On Thu, Nov 26, 2026 at 4:54 PM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
> >
> ...
> >
> > Looks good.
> >
> > 0001: The sentences read better now, though some of that is down to
> > personal preference. I especially like the change around the
> > update_missing sentence; much clearer.
> >
> > 0002: Clearer now.
> >
> > One nit: only the 0001 commit message has typos: "sentances" and
> > "track_commit_timetamp".
>
> Oops. Fixed.
>
> >
> > While we're at it, shall we also make one line clearer under
> > 'update_exists'? Suggestion:
> >
> > --
> > When updating a partitioned table, if the updated row value satisfies
> > another partition constraint resulting in the row being inserted into
> > a new partition, an insert_exists conflict (rather than update_exists)
> > may arise if the new row violates a NOT DEFERRABLE unique constraint.
> > --
>
> Good idea. Done as suggested with some minor tweaks.
>
> ~
>
> Some other sentence ("This conflict raises an error...") reordering
> was done to resolve ambiguities with the previous "with this case"
> wording.
>

Thanks. Regarding this:

+ unique constraint. This conflict raises an error, and the error will
+ recur until the conflict is resolved manually.

With disable_on_error = true, the subscription is disabled after the
first error, so "the error will recur" isn't literally what happens.
Shall we say instead:

This conflict raises an error, and replication cannot proceed until
the conflict is resolved manually.

thanks
Shveta

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message John Naylor 2026-12-01 10:29:41 Re: [PATCH] Avoid copying tuples that a bounded sort will discard
Previous Message ZizhuanLiu X-MAN 2026-12-01 09:27:11 Re: examine_variable ignored CollateExpr