| From: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
|---|---|
| To: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
| Cc: | vignesh C <vignesh21(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, Peter Smith <smithpb2250(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> |
| Subject: | Re: Proposal: Conflict log history table for Logical Replication |
| Date: | 2026-06-25 13:45:02 |
| Message-ID: | CAFiTN-suQNZeGdih=caNza+8m=0ThQCig03d2PUa-nZSjmp-7Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Jun 25, 2026 at 6:37 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Thu, Jun 25, 2026 at 6:30 PM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
> >
> > On Thu, Jun 25, 2026 at 4:57 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> > >
> >
> > > 2.
> > > @@ -2482,6 +2681,8 @@ DropSubscription(DropSubscriptionStmt *stmt,
> > > bool isTopLevel)
> > > deleteDependencyRecordsFor(SubscriptionRelationId, subid, false);
> > > deleteSharedDependencyRecordsFor(SubscriptionRelationId, subid, 0);
> > >
> > > + drop_sub_conflict_log_table(subid, subname, subconflictlogrelid);
> > >
> > > It would be better to drop the table before cleaning up the dependency
> > > record. Right now, it is okay even in current order because dependency
> > > removal is trying to remove where subid is depender.
> >
> > So whats your suggestion change it now or not? I feel either way is fine.
> >
>
> Let's change now itself.
PFA, updated version of the patch, fixes all the comments of V57
Open comments
1. Need more thought on converting to JSONB column
2. Shveta's comments on saving the results of the common query is not
yet fixed, I will put more thought on this.
--
Regards,
Dilip Kumar
Google
| Attachment | Content-Type | Size |
|---|---|---|
| v58-0002-Report-error-for-ddls-on-conflict-log-tables.patch | application/octet-stream | 37.1 KB |
| v58-0003-Implement-the-conflict-insertion-infrastructure-.patch | application/octet-stream | 54.6 KB |
| v58-0001-Add-configurable-conflict-log-table-for-Logical-.patch | application/octet-stream | 63.9 KB |
| v58-0004-Preserve-conflict-log-destination-and-subscripti.patch | application/octet-stream | 23.4 KB |
| v58-0005-Add-conflict-log-table-information-to-describe-s.patch | application/octet-stream | 78.7 KB |
| v58-0006-Documentation-patch.patch | application/octet-stream | 42.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Baji Shaik | 2026-06-25 13:47:27 | Re: uuidv7 improperly accepts dates before 1970-01-01 |
| Previous Message | Sebastiaan Mannem | 2026-06-25 13:43:32 | Re: Out-of-Cycle release? (was Re: BUG #19490: Streaming standby on 16.14 stops applying WAL on MultiXactOffsetSLRU when primary is 16.8) |