| From: | Nisha Moond <nisha(dot)moond412(at)gmail(dot)com> |
|---|---|
| To: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
| Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Zhijie Hou <houzhijie22(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, shihao zhong <zhong950419(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, saurabh singh <saurabh(dot)singh214(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Smith <smithpb2250(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-11-25 11:53:29 |
| Message-ID: | CABdArM6wV=SYX3B9xracRmj33wB5-kyP+HQQwH-ZqV2cZc9gLQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Nov 25, 2026 at 1:15 PM Hayato Kuroda (Fujitsu)
<kuroda(dot)hayato(at)fujitsu(dot)com> wrote:
>
> Hi Nisha,
>
> Thanks for posting the patch. Here is my comment.
>
Hi Kuroda-san,
Thanks for the review.
> 01.
> This patch could not pass a test 035_conflicts, it stucked at line 1226-1227.
> I suspected because drop_sub_conflict_log_table exists before the 2PC check.
>
Yes, the test failure was due to the same issue Shveta pointed out
[1]. Now fixed with v2.
> 02.
> ```
> ObjectAddressSet(object, SubscriptionRelationId, subid);
> - performDeletion(&object, DROP_CASCADE,
> + performDeletion(&object, behavior,
> PERFORM_DELETION_INTERNAL |
> PERFORM_DELETION_SKIP_ORIGINAL);
> ```
>
> As Hou-san pointed out, this would report "cannot drop subscription" error even
> while in ALTER SUBSCRIPTION, because the subscription is specified for performDeletion().
>
> How about removing the dependecy between the CLT and subscription via
> deleteDependencyRecordsForSpecific(objectId := subconflictlogrelid) first then do
> performDeletion() for the CLT?
>
+1, done.
Attached v2 patch fixing above as well as other comments from Hou-san at [2].
[1] https://www.postgresql.org/message-id/CAJpy0uDxtfYGqfU73uDRAytJC%3Dt6PneivzmErv%3Dmy3iNjhjbSA%40mail.gmail.com
[2] https://www.postgresql.org/message-id/da735675-34a2-450e-933b-4474ff4823bc%40gmail.com
--
Thanks,
Nisha
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Fix-and-document-conflict-log-table-handling-in-s.patch | application/octet-stream | 22.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alberto Piai | 2026-11-25 11:59:23 | Re: Allow progress tracking of sub-commands |
| Previous Message | Nisha Moond | 2026-11-25 11:52:03 | Re: Proposal: Conflict log history table for Logical Replication |