Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The ALTER SUBSCRIPTION command modifies the definition of a subscription.
ALTER SUBSCRIPTION
ALTER SUBSCRIPTION subscription_name alter_option;
alter_option
OWNER TO
ALTER SUBSCRIPTION current_subscription_name OWNER TO new_user;
-- Change the owner of the subscription named "sub" to user "admin" ALTER SUBSCRIPTION sub OWNER TO admin;
RENAME TO
ALTER SUBSCRIPTION subscription_name RENAME TO new_name;
-- Rename the subscription named "sub0" to "sub1" ALTER SUBSCRIPTION sub0 RENAME TO sub1;
SET RETENTION
ALTER SUBSCRIPTION subscription_name SET RETENTION { TO | = } '<duration>';
3H
2D
-- Retain incremental data for two days. ALTER SUBSCRIPTION user_updates SET RETENTION TO '2D';
SET SCHEMA
ALTER SUBSCRIPTION current_subscription_name SET SCHEMA schema_name;
-- Move the subscription named "test_subscription" to the schema named "test_schema" ALTER SUBSCRIPTION test_subscription SET SCHEMA test_schema;
SWAP WITH
ALTER SUBSCRIPTION name SWAP WITH target_name;
-- Swap the names of the user_updates subscription and the admin_updates subscription. ALTER SUBSCRIPTION user_updates SWAP WITH admin_updates;
Was this page helpful?