mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Add more documentation and tests for publications
Add/correct documentation and add some tests related to how access control around adding tables to publications works.
This commit is contained in:
@ -307,6 +307,12 @@
|
||||
privilege in the database.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To add tables to a publication, the user must have ownership rights on the
|
||||
table. To create a publication that publishes all tables automatically,
|
||||
the user must be a superuser.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To create a subscription, the user must be a superuser.
|
||||
</para>
|
||||
|
@ -143,9 +143,9 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To add a table to a publication, the invoking user must have
|
||||
<command>SELECT</command> privilege on given table. The
|
||||
<command>FOR ALL TABLES</command> clause requires superuser.
|
||||
To add a table to a publication, the invoking user must have ownership
|
||||
rights on the table. The <command>FOR ALL TABLES</command> clause requires
|
||||
the invoking user to be a superuser.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user