RE: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility. - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.
Date
Msg-id OSCPR01MB149661ED8D3BCB334731ED37BF579A@OSCPR01MB14966.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
Dear Peter,

Thanks for posting the patch. Largely it seems OK.

One comment:
I feel most of the word "remove" can be changed to "dropped", in pg_createsubscriber.c
and 040_pg_createsubscriber.pl. E.g.,

```
# Confirm the physical replication slot has been removed
$result = $node_p->safe_psql($db1,
    "SELECT count(*) FROM pg_replication_slots WHERE slot_name = '$slotname'"
);
is($result, qq(0),
    'the physical replication slot used as primary_slot_name has been removed'
);
```

And

```
    /* Remove failover replication slots if they exist on subscriber */
    drop_failover_replication_slots(dbinfos.dbinfo);
```


Best regards,
Hayato Kuroda
FUJITSU LIMITED


pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Minor patch; missing comment update in worker.c
Next
From: Amit Kapila
Date:
Subject: Re: Memory allocation error DDL invalidation (seen with 15.13 & 16.9)