Appended is a small documentation patch that adds a note to the CREATE
authorBruce Momjian
Fri, 3 Mar 2006 03:06:05 +0000 (03:06 +0000)
committerBruce Momjian
Fri, 3 Mar 2006 03:06:05 +0000 (03:06 +0000)
ROLE page, based on what Tom Lane told me here:

http://archives.postgresql.org/pgsql-general/2005-11/msg00998.php

Joachim Wieland

doc/src/sgml/ref/create_role.sgml

index 60dce9b298d886c6a0ac1c3b9907360ffed479ec..e25f07f570ee52cba78678f2df1d19405f22bd98 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -347,6 +347,19 @@ where option can be:
    specified in the SQL standard.
   
 
+  
+   Be careful with the CREATEROLE privilege. There is no concept of
+   inheritance for the privileges of a CREATEROLE-role. That
+   means that even if a role does not have a certain privilege but is allowed
+   to create other roles, it can easily create another role with different
+   privileges than its own (except for creating roles with superuser
+   privileges). For example, if the role user has the
+   CREATEROLE privilege but not the CREATEDB privilege,
+   nonetheless it can create a new role with the CREATEDB
+   privilege. Therefore, regard roles that have the CREATEROLE
+   privilege as almost-superuser-roles.
+  
+
   
    PostgreSQL includes a program 
    linkend="APP-CREATEUSER" endterm="APP-CREATEUSER-title"> that has