diff options
author | Magnus Hagander <magnus@hagander.net> | 2011-01-03 12:00:09 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2011-01-03 12:00:09 +0100 |
commit | 1996b482859c67726e77b80a263d3cce954e022d (patch) | |
tree | b12889ac4bf0159633a00af5ea334bc3ffd9a535 | |
parent | c0e96b49e588b2a5ab501a2acc03b96ff76cf288 (diff) | |
download | postgresql-1996b482859c67726e77b80a263d3cce954e022d.tar.gz postgresql-1996b482859c67726e77b80a263d3cce954e022d.zip |
Add missing part of replication role docs
Noted by Peter E.
-rw-r--r-- | doc/src/sgml/user-manag.sgml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/src/sgml/user-manag.sgml b/doc/src/sgml/user-manag.sgml index d4906907ec0..08b3fb7dc42 100644 --- a/doc/src/sgml/user-manag.sgml +++ b/doc/src/sgml/user-manag.sgml @@ -169,7 +169,8 @@ CREATE USER <replaceable>name</replaceable>; <term>superuser status<indexterm><primary>superuser</></></term> <listitem> <para> - A database superuser bypasses all permission checks. This is a + A database superuser bypasses all permission checks, except the right + to log in or the right to initiate replication. This is a dangerous privilege and should not be used carelessly; it is best to do most of your work as a role that is not a superuser. To create a new database superuser, use <literal>CREATE ROLE @@ -209,6 +210,20 @@ CREATE USER <replaceable>name</replaceable>; </varlistentry> <varlistentry> + <term>initiating replication<indexterm><primary>role</><secondary>privilege to initiate replication</></></term> + <listitem> + <para> + A role must explicitly be given permission to initiate streaming + replication (superusers do not bypass this check). A role used + for streaming replication must always have <literal>LOGIN</> + permission as well. To create such a role, use + <literal>CREATE ROLE <replaceable>name</replaceable> REPLICATION + LOGIN</literal>. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term>password<indexterm><primary>password</></></term> <listitem> <para> |