Skip to content

Commit a9d5383

Browse files
committed
Fix documentation for the privileges required for replication functions.
Previously it's documented that use of replication functions is restricted to superusers. This is true for the functions which use replication origin, but not for pg_logicl_emit_message() and functions which use replication slot. For example, not only superusers but also users with REPLICATION privilege is allowed to use the functions for replication slot. This commit fixes the documentation for the privileges required for those replication functions. Back-patch to 9.4 (all supported versions). Author: Matsumura Ryo Discussion: https://postgr.es/m/03040DFF97E6E54E88D3BFEE5F5480F74ABA6E16@G01JPEXMBYT04
1 parent 1f3bcb4 commit a9d5383

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19168,8 +19168,10 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
1916819168
See <xref linkend="streaming-replication"/>,
1916919169
<xref linkend="streaming-replication-slots"/>, and
1917019170
<xref linkend="replication-origins"/>
19171-
for information about the underlying features. Use of these
19172-
functions is restricted to superusers.
19171+
for information about the underlying features.
19172+
Use of functions for replication origin is restricted to superusers.
19173+
Use of functions for replication slot is restricted to superusers
19174+
and users having <literal>REPLICATION</literal> privilege.
1917319175
</para>
1917419176

1917519177
<para>

0 commit comments

Comments
 (0)