8000 Add missing part of replication role docs · postgrespro/postgres@1996b48 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1996b48

Browse files
committed
Add missing part of replication role docs
Noted by Peter E.
1 parent c0e96b4 commit 1996b48

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

doc/src/sgml/user-manag.sgml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ CREATE USER <replaceable>name</replaceable>;
169169
<term>superuser status<indexterm><primary>superuser</></></term>
170170
<listitem>
171171
<para>
172-
A database superuser bypasses all permission checks. This is a
172+
A database superuser bypasses all permission checks, except the right
173+
to log in or the right to initiate replication. This is a
173174
dangerous privilege and should not be used carelessly; it is best
174175
to do most of your work as a role that is not a superuser.
175176
To create a new database superuser, use <literal>CREATE ROLE
@@ -208,6 +209,20 @@ CREATE USER <replaceable>name</replaceable>;
208209
</listitem>
209210
</varlistentry>
210211

212+
<varlistentry>
213+
<term>initiating replication<indexterm><primary>role</><secondary>privilege to initiate replication</></></term>
214+
<listitem>
215+
<para>
216+
A role must explicitly be given permission to initiate streaming
217+
replication (superusers do not bypass this check). A role used
218+
for streaming replication must always have <literal>LOGIN</>
219+
permission as well. To create such a role, use
220+
<literal>CREATE ROLE <replaceable>name</replaceable> REPLICATION
221+
LOGIN</literal>.
222+
</para>
223+
</listitem>
224+
</varlistentry>
225+
211226
<varlistentry>
212227
<term>password<indexterm><primary>password</></></term>
213228
<listitem>

0 commit comments

Comments
 (0)
0