mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
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.
This commit is contained in:
parent
a3e51a36b7
commit
cc865c0f31
@ -62,11 +62,12 @@ ALTER PUBLICATION <replaceable class="parameter">name</replaceable> RENAME TO <r
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
You must own the publication to use <command>ALTER PUBLICATION</command>.
|
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
|
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
|
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>
|
the database. Also, the new owner of a <literal>FOR ALL TABLES</literal>
|
||||||
publication must be a superuser. However, a superuser can change the
|
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>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user