From e76db009f079ece9408e37336887bc6457cc1fc6 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 15 Mar 2017 13:52:07 -0400 Subject: 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. --- doc/src/sgml/logical-replication.sgml | 6 ++++++ doc/src/sgml/ref/create_publication.sgml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/logical-replication.sgml b/doc/src/sgml/logical-replication.sgml index 7b351f2727c..a6c04e923da 100644 --- a/doc/src/sgml/logical-replication.sgml +++ b/doc/src/sgml/logical-replication.sgml @@ -307,6 +307,12 @@ privilege in the database. + + 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. + + To create a subscription, the user must be a superuser. diff --git a/doc/src/sgml/ref/create_publication.sgml b/doc/src/sgml/ref/create_publication.sgml index 995f2bcf3c1..b00a91ef8a6 100644 --- a/doc/src/sgml/ref/create_publication.sgml +++ b/doc/src/sgml/ref/create_publication.sgml @@ -143,9 +143,9 @@ CREATE PUBLICATION name - To add a table to a publication, the invoking user must have - SELECT privilege on given table. The - FOR ALL TABLES clause requires superuser. + To add a table to a publication, the invoking user must have ownership + rights on the table. The FOR ALL TABLES clause requires + the invoking user to be a superuser. -- cgit v1.2.3