Modifies subscription attributes.
1 | ALTER SUBSCRIPTION name CONNECTION 'conninfo' |
1 | ALTER SUBSCRIPTION name SET PUBLICATION publication_name [, ...] |
1 | ALTER SUBSCRIPTION name ENABLE |
1 | ALTER SUBSCRIPTION name DISABLE |
1 | ALTER SUBSCRIPTION name SET ( subscription_parameter [= value] [, ... ] ) |
1 | ALTER SUBSCRIPTION name OWNER TO new_owner |
1 | ALTER SUBSCRIPTION name RENAME TO new_name |
Specifies the name of the subscription you want to modify.
Value range: A string. It must comply with the naming convention.
Alters the connection attributes initially set by CREATE SUBSCRIPTION.
For details about the parameters, see conninfo in the parameter description.
Specifies the name of a new publication.
Value range: A string. It must comply with the naming convention.
Enables a previously disabled subscription and starts logical replication at the end of a transaction.
Disables a running subscription and stops logical replication at the end of a transaction.
Modifies the publication parameters initially set by CREATE PUBLICATION. For details about the parameters, see Parameter description of CREATE SUBSCRIPTION.
Specifies the name new subscription owner.
Specifies the new name of the subscription.
ALTER SUBSCRIPTION mysub CONNECTION 'host=192.168.1.51 port=5432 user=foo dbname=foodb password=xxxx';