Help Center/
GaussDB/
Developer Guide(Centralized_2.x)/
SQL Reference/
SQL Syntax/
DROP SUBSCRIPTION
Updated on 2023-10-23 GMT+08:00
DROP SUBSCRIPTION
Function
DROP SUBSCRIPTION deletes a subscription from a database instance.
Precautions
- A subscription can be deleted only by the system administrator.
- If the subscription to be deleted is associated with a replication slot, DROP SUBSCRIPTION cannot be executed inside a transaction block.
Syntax
DROP SUBSCRIPTION [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Parameter Description
- name
Specifies the name of the subscription to be deleted.
- CASCADE|RESTRICT
Currently, these keywords do not work because there is no dependency on subscriptions.
Examples
For details, see Examples.
Helpful Links
Parent topic: SQL Syntax
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot