Modifies the publication attributes.
1 | ALTER PUBLICATION name ADD publication_object [, ...] |
1 | ALTER PUBLICATION name DROP publication_object [, ...] |
Replaces the current object with a specified object.
1 | ALTER PUBLICATION name SET publication_object [, ...] |
1 | ALTER PUBLICATION name SET ( publication_parameter [= value] [, ... ] ) |
1 | ALTER PUBLICATION name OWNER TO new_owner |
1 | ALTER PUBLICATION name RENAME TO new_name |
The syntax of using publication_object is as follows:
TABLE table_name [, ...] | ALL TABLES IN SCHEMA schema_name [, ... ]
Specifies the publication name you want to modify.
Value range: A string. It must comply with the naming convention.
Specifies the name of an existing table.
Value range: A string. It must comply with the naming convention.
Specifies the name of an existing schema.
Value range: A string. It must comply with the naming convention.
Modifies the publication parameters initially set by CREATE PUBLICATION. For details about the parameters, see Parameter description of CREATE PUBLICATION.
Specifies the new publication owner.
Specifies the new name of a publication.
ALTER PUBLICATION mypublication ADD TABLE mydata2;
ALTER PUBLICATION mypublication DROP ALL TABLES IN SCHEMA myschema1;
ALTER PUBLICATION mypublication SET TABLE mydata2, ALL TABLES IN SCHEMA myschema2;
ALTER PUBLICATION mypublication OWNER TO user1;
ALTER PUBLICATION mypublication RENAME TO mypublication1;