How Do I Manually Delete Replication Slots from a PostgreSQL Data Source?
Symptom
The replication slots of the PostgreSQL data source cannot be automatically deleted. When the number of replication slots reaches the upper limit, new jobs cannot be executed. You must manually delete replication slots.
Possible Cause
The replication slots of the PostgreSQL data source cannot be automatically deleted.
Solution
- Log in to the source database used by the job.
- Query the name of the streaming replication slot corresponding to 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 corresponding streaming replication slot:
select * from pg_drop_replication_slot('slot_name');
- Run the following statement to check whether the streaming replication slot is deleted:
select slot_name from pg_replication_slots where slot_name = 'slot_name';
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot