mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Refine rules for altering publication owner
Previously, the new owner had to be a superuser. The new rules are more refined similar to other objects. Reviewed-by: Petr Jelinek <petr.jelinek@2ndquadrant.com>
This commit is contained in:
@ -48,8 +48,11 @@ ALTER PUBLICATION <replaceable class="PARAMETER">name</replaceable> DROP TABLE <
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To alter the owner, you must also be a direct or indirect member of the
|
||||
new owning role. The new owner has to be a superuser
|
||||
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.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user