Skip to content

Commit a6e7d59

Browse files
committed
Improve documentations for ALTER PUBLICATION and ALTER SUBSCRIPTION.
Discussion: http://postgr.es/m/CAD21AoC32YgtateNqTFXzTJmHHe6hXs4cpJTND3n-Ts8f-aMqw@mail.gmail.com
1 parent c525f74 commit a6e7d59

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

doc/src/sgml/ref/alter_publication.sgml

+19
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> WITH ( <repl
3030
| PUBLISH DELETE | NOPUBLISH DELETE
3131

3232
ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> OWNER TO { <replaceable>new_owner</replaceable> | CURRENT_USER | SESSION_USER }
33+
ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> RENAME TO <replaceable>new_name</replaceable>
3334
ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> ADD TABLE <replaceable class="PARAMETER">table_name</replaceable> [, ...]
3435
ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> SET TABLE <replaceable class="PARAMETER">table_name</replaceable> [, ...]
3536
ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> DROP TABLE <replaceable class="PARAMETER">table_name</replaceable> [, ...]
@@ -78,6 +79,24 @@ ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> DROP TABLE <
7879
</listitem>
7980
</varlistentry>
8081

82+
<varlistentry>
83+
<term><replaceable class="parameter">new_owner</replaceable></term>
84+
<listitem>
85+
<para>
86+
The user name of the new owner of the publication.
87+
</para>
88+
</listitem>
89+
</varlistentry>
90+
91+
<varlistentry>
92+
<term><replaceable class="parameter">new_name</replaceable></term>
93+
<listitem>
94+
<para>
95+
The new name for the publication.
96+
</para>
97+
</listitem>
98+
</varlistentry>
99+
81100
<varlistentry>
82101
<term><literal>PUBLISH INSERT</literal></term>
83102
<term><literal>NOPUBLISH INSERT</literal></term>

doc/src/sgml/ref/alter_subscription.sgml

+19
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ ALTER SUBSCRIPTION <replaceable class="PARAMETER">name</replaceable> REFRESH PUB
3535
COPY DATA | NOCOPY DATA
3636

3737
ALTER SUBSCRIPTION <replaceable class="PARAMETER">name</replaceable> OWNER TO { <replaceable>new_owner</replaceable> | CURRENT_USER | SESSION_USER }
38+
ALTER SUBSCRIPTION <replaceable class="PARAMETER">name</replaceable> RENAME TO <replaceable>new_name</replaceable>
3839
ALTER SUBSCRIPTION <replaceable class="PARAMETER">name</replaceable> CONNECTION '<replaceable>conninfo</replaceable>'
3940
ALTER SUBSCRIPTION <replaceable class="PARAMETER">name</replaceable> ENABLE
4041
ALTER SUBSCRIPTION <replaceable class="PARAMETER">name</replaceable> DISABLE
@@ -69,6 +70,24 @@ ALTER SUBSCRIPTION <replaceable class="PARAMETER">name</replaceable> DISABLE
6970
</listitem>
7071
</varlistentry>
7172

73+
<varlistentry>
74+
<term><replaceable class="parameter">new_owner</replaceable></term>
75+
<listitem>
76+
<para>
77+
The user name of the new owner of the subscription.
78+
</para>
79+
</listitem>
80+
</varlistentry>
81+
82+
<varlistentry>
83+
<term><replaceable class="parameter">new_name</replaceable></term>
84+
<listitem>
85+
<para>
86+
The new name for the subscription.
87+
</para>
88+
</listitem>
89+
</varlistentry>
90+
7291
<varlistentry>
7392
<term><literal>CONNECTION '<replaceable class="parameter">conninfo</replaceable>'</literal></term>
7493
<term><literal>SLOT NAME = <replaceable class="parameter">slot_name</replaceable></literal></term>

0 commit comments

Comments
 (0)