Hi Nisha,
Thanks for posting the patch. Here is my comment.
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.
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?
Best regards,
Hayato Kuroda
FUJITSU LIMITED