doc: Update description of rolreplication column

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 <masao.fujii@gmail.com>
This commit is contained in:
Peter Eisentraut 2017-08-11 16:14:55 -04:00
parent e2e398473e
commit fdf89f7aac
2 changed files with 9 additions and 10 deletions

View File

@ -1280,10 +1280,8 @@
<entry><structfield>rolreplication</structfield></entry> <entry><structfield>rolreplication</structfield></entry>
<entry><type>bool</type></entry> <entry><type>bool</type></entry>
<entry> <entry>
Role is a replication role. That is, this role can initiate streaming Role is a replication role. A replication role can initiate replication
replication (see <xref linkend="streaming-replication">) and set/unset connections and create and drop replication slots.
the system backup mode using <function>pg_start_backup</> and
<function>pg_stop_backup</>
</entry> </entry>
</row> </row>
@ -8906,10 +8904,8 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
<entry><type>bool</type></entry> <entry><type>bool</type></entry>
<entry></entry> <entry></entry>
<entry> <entry>
Role is a replication role. That is, this role can initiate streaming Role is a replication role. A replication role can initiate replication
replication (see <xref linkend="streaming-replication">) and set/unset connections and create and drop replication slots.
the system backup mode using <function>pg_start_backup</> and
<function>pg_stop_backup</>
</entry> </entry>
</row> </row>

View File

@ -167,8 +167,11 @@ CREATE ROLE <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replac
<term><literal>NOREPLICATION</literal></term> <term><literal>NOREPLICATION</literal></term>
<listitem> <listitem>
<para> <para>
These clauses determine whether a role is allowed to initiate These clauses determine whether a role is a replication role. A role
streaming replication or put the system in and out of backup mode. 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 <literal>REPLICATION</> attribute is a very A role having the <literal>REPLICATION</> attribute is a very
highly privileged role, and should only be used on roles actually highly privileged role, and should only be used on roles actually
used for replication. If not specified, used for replication. If not specified,