forked from docs/doc-exports
Reviewed-by: Székely, Ond <ond.szekely@t-systems.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
3.3 KiB
3.3 KiB
Forcibly Stopping Synchronization from GaussDB Distributed
This section describes how to delete streaming replication slots of the source distributed GaussDB database after an incremental or a full+incremental synchronization task is forcibly stopped.
Prerequisites
Common users do not have the permission to perform EXECUTE DIRECT. To delete streaming replication slots, contact GaussDB O&M personnel.
Procedure
- Log in to each primary DN node of the distributed GaussDB instance as the user used when you tested the connectivity between the DRS instance and the distributed GaussDB instance.
- Run the following statement to query the streaming replication slot name of the database object selected for the synchronization task:
select slot_name from pg_replication_slots where database = 'database';
- Run the following statement to delete the streaming replication slot:
select * from pg_drop_replication_slot('slot_name');
In the preceding command, slot_name indicates the name of the streaming replication slot queried in 2.
- Run the following statement to check whether the streaming replication slot is successfully deleted:
select slot_name from pg_replication_slots where database = 'database';
If the query result is empty, the streaming replication slot is deleted.
- Repeat the preceding operations to ensure that the streaming replication slot on each primary DN is deleted.
Parent topic: Operation Reference in Synchronization Scenarios