| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Nisha Moond <nisha(dot)moond412(at)gmail(dot)com> |
| Cc: | vignesh C <vignesh21(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, shveta malik <shvetamalik(at)gmail(dot)com> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-05-28 23:41:34 |
| Message-ID: | CAA4eK1+h=QV4Zi=PW8Zt2D6be5ki5Mu2HgdXcfUophptx6Mt_A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, May 21, 2026 at 9:51 PM Nisha Moond <nisha(dot)moond412(at)gmail(dot)com> wrote:
>
> On Wed, May 20, 2026 at 3:05 PM vignesh C <vignesh21(at)gmail(dot)com> wrote:
> >
> > Rest of the comments were fixed.
> > The attached v37 version patch has the changes for the same. Also
> > Peter's comments on the documentation patch from [1] and Shveta's
> > comments from [2] are addressed in the attached patch.
> >
>
> Here are few comments based on v37 testing:
>
> 1) Should we consider using TOAST tables for tuple-data columns like
> remote_tuple and local_conflicts (the JSON columns)?
> This may be a corner case, but if the tuple data becomes too large to
> fit into an 8KB heap tuple, then the apply worker keeps failing while
> inserting into the CLT with errors like:
>
> ERROR: row is too big: size 19496, maximum size 8160
> LOG: background worker "logical replication apply worker" (PID
> 41226) exited with exit code 1
>
In the docs, it is mentioned: "column_value is the column value. The
large column values are truncated to 64 bytes." [1], so I wonder, if
we follow this why we need toast entries? Did you tried any case where
you are getting above ERROR?
> Noticed that even disable_on_error=true does not disable the
> subscription in this case.
>
Hmm, I think we need to have a documented reason if such a case
doesn't disable the subscription with the disable_on_error as true?
[1]: https://www.postgresql.org/docs/devel/logical-replication-conflicts.html
--
With Regards,
Amit Kapila.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-05-29 00:11:45 | pg_recvlogical: send final feedback on SIGINT/SIGTERM exit |
| Previous Message | Michael Paquier | 2026-05-28 23:19:42 | Re: injection_points: Switch wait/wakeup to use atomics rather than latches |