Skip to content

Commit b35440e

Browse files
committed
Appended is a small documentation patch that adds a note to the CREATE
ROLE page, based on what Tom Lane told me here: http://archives.postgresql.org/pgsql-general/2005-11/msg00998.php Joachim Wieland
1 parent 66eccb4 commit b35440e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

doc/src/sgml/ref/create_role.sgml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_role.sgml,v 1.6 2005/12/23 16:46:39 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_role.sgml,v 1.7 2006/03/03 03:06:05 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -347,6 +347,19 @@ where <replaceable class="PARAMETER">option</replaceable> can be:
347347
specified in the SQL standard.
348348
</para>
349349

350+
<para>
351+
Be careful with the <literal>CREATEROLE</> privilege. There is no concept of
352+
inheritance for the privileges of a <literal>CREATEROLE</>-role. That
353+
means that even if a role does not have a certain privilege but is allowed
354+
to create other roles, it can easily create another role with different
355+
privileges than its own (except for creating roles with superuser
356+
privileges). For example, if the role <quote>user</> has the
357+
<literal>CREATEROLE</> privilege but not the <literal>CREATEDB</> privilege,
358+
nonetheless it can create a new role with the <literal>CREATEDB</>
359+
privilege. Therefore, regard roles that have the <literal>CREATEROLE</>
360+
privilege as almost-superuser-roles.
361+
</para>
362+
350363
<para>
351364
<productname>PostgreSQL</productname> includes a program <xref
352365
linkend="APP-CREATEUSER" endterm="APP-CREATEUSER-title"> that has

0 commit comments

Comments
 (0)