@@ -34,28 +34,40 @@ ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> RENAME TO <r
34
34
<title>Description</title>
35
35
36
36
<para>
37
- The first variant of this command listed in the synopsis can change
37
+ The command <command>ALTER PUBLICATION</command> can change the attributes
38
+ of a publication.
39
+ </para>
40
+
41
+ <para>
42
+ The first three variants change which tables are part of the publication.
43
+ The <literal>SET TABLE</literal> clause will replace the list of tables in
44
+ the publication with the specified one. The <literal>ADD TABLE</literal>
45
+ and <literal>DROP TABLE</literal> clauses will add and remove one or more
46
+ tables from the publication. Note that adding tables to a publication that
47
+ is already subscribed to will require a <literal>ALTER SUBSCRIPTION
48
+ ... REFRESH PUBLICATION</literal> action on the subscribing side in order
49
+ to become effective.
50
+ </para>
51
+
52
+ <para>
53
+ The fourth variant of this command listed in the synopsis can change
38
54
all of the publication properties specified in
39
55
<xref linkend="sql-createpublication">. Properties not mentioned in the
40
56
command retain their previous settings.
41
57
</para>
42
58
43
59
<para>
60
+ The remaining variants change the owner and the name of the publication.
61
+ </para>
62
+
63
+ <para>
64
+ You must own the publication to use <command>ALTER PUBLICATION</command>.
44
65
To alter the owner, you must also be a direct or indirect member of the new
45
66
owning role. The new owner must have <literal>CREATE</literal> privilege on
46
67
the database. Also, the new owner of a <literal>FOR ALL TABLES</literal>
47
68
publication must be a superuser. However, a superuser can change the
48
69
ownership of a publication while circumventing these restrictions.
49
70
</para>
50
-
51
- <para>
52
- The other variants of this command deal with the table membership of the
53
- publication. The <literal>SET TABLE</literal> clause will replace the
54
- list of tables in the publication with the specified one.
55
- The <literal>ADD TABLE</literal> and
56
- <literal>DROP TABLE</literal> will add and remove one or more tables from
57
- the publication.
58
- </para>
59
71
</refsect1>
60
72
61
73
<refsect1>
@@ -147,6 +159,8 @@ ALTER PUBLICATION mypublication ADD TABLE users, departments;
147
159
<simplelist type="inline">
148
160
<member><xref linkend="sql-createpublication"></member>
149
161
<member><xref linkend="sql-droppublication"></member>
162
+ <member><xref linkend="sql-createsubscription"></member>
163
+ <member><xref linkend="sql-altersubscription"></member>
150
164
</simplelist>
151
165
</refsect1>
152
166
</refentry>
0 commit comments