This section describes how to clear the streaming replication slots of the source GaussDB(for openGauss) distributed database after the incremental or full+incremental synchronization task is forcibly stopped.
Common users do not have the permission to perform the execute direct operation. To delete streaming replication slots, contact GaussDB(for openGauss) O&M personnel.
select slot_name from pg_replication_slots where database = 'database';
In the preceding command, database indicates the database selected in the synchronization task.
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.
select slot_name from pg_replication_slots where database = 'database';
If the query result is empty, the streaming replication slot is deleted.