On Wed, Nov 25, 2026 at 1:15 PM Hayato Kuroda (Fujitsu) <[email protected]> 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
v2-0001-Fix-and-document-conflict-log-table-handling-in-s.patch
Description: Binary data
