doc: Update description of rolreplication column
authorPeter Eisentraut
Fri, 11 Aug 2017 20:14:55 +0000 (16:14 -0400)
committerPeter Eisentraut
Fri, 11 Aug 2017 20:14:55 +0000 (16:14 -0400)
Since PostgreSQL 9.6, rolreplication no longer determines whether a role
can run pg_start_backup() and pg_stop_backup(), so remove that.

Add that this attribute determines whether a role can create and drop
replication slots.

Reported-by: Fujii Masao
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/create_role.sgml

index 97e5ecf686e355fb6ccf2c8c383022bb8618e6a6..ef7054cf26849a752e008da2d0b5a437affacdd3 100644 (file)
       rolreplication
       bool
       
-       Role is a replication role. That is, this role can initiate streaming
-       replication (see ) and set/unset
-       the system backup mode using pg_start_backup and
-       pg_stop_backup
+       Role is a replication role. A replication role can initiate replication
+       connections and create and drop replication slots.
       
      
 
@@ -9852,10 +9850,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
       bool
       
       
-       Role is a replication role. That is, this role can initiate streaming
-       replication (see ) and set/unset
-       the system backup mode using pg_start_backup and
-       pg_stop_backup
+       Role is a replication role. A replication role can initiate replication
+       connections and create and drop replication slots.
       
      
 
index 4881e544391f9360c6ec71d3dc896ad63925e73e..36772b678a81c8d69930dca116fdfc650a35c164 100644 (file)
@@ -167,8 +167,11 @@ CREATE ROLE name [ [ WITH ] 
       NOREPLICATION
       
        
-        These clauses determine whether a role is allowed to initiate
-        streaming replication or put the system in and out of backup mode.
+        These clauses determine whether a role is a replication role.  A role
+        must have this attribute (or be a superuser) in order to be able to
+        connect to the server in replication mode (physical or logical
+        replication) and in order to be able to create or drop replication
+        slots.
         A role having the REPLICATION attribute is a very
         highly privileged role, and should only be used on roles actually
         used for replication. If not specified,