summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-01-12 12:52:14 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-01-12 12:52:37 -0500
commita2c5a430a9d14a5f0003c9a8b3e472bb9a0a1148 (patch)
tree1fcd8d06c4dd7d247701541af3615b141fc30f16 /doc/src
parent6adec1e0650dad253b65e012710dec50ca243556 (diff)
Doc: fix description of privileges needed for ALTER PUBLICATION.
Adding a table to a publication requires ownership of the table (in addition to ownership of the publication). This was mentioned nowhere.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/alter_publication.sgml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/alter_publication.sgml b/doc/src/sgml/ref/alter_publication.sgml
index f064ec5f320..fd702513ef7 100644
--- a/doc/src/sgml/ref/alter_publication.sgml
+++ b/doc/src/sgml/ref/alter_publication.sgml
@@ -62,11 +62,12 @@ ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> RENAME TO <r
<para>
You must own the publication to use <command>ALTER PUBLICATION</command>.
+ Adding a table to a publication additionally requires owning that table.
To alter the owner, you must also be a direct or indirect member of the new
owning role. The new owner must have <literal>CREATE</literal> privilege on
the database. Also, the new owner of a <literal>FOR ALL TABLES</literal>
publication must be a superuser. However, a superuser can change the
- ownership of a publication while circumventing these restrictions.
+ ownership of a publication regardless of these restrictions.
</para>
</refsect1>