From: Tom Lane Date: Thu, 22 Oct 2015 16:33:51 +0000 (-0700) Subject: Remove redundant CREATEUSER/NOCREATEUSER options in CREATE ROLE et al. X-Git-Tag: REL9_6_BETA1~1172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d371bebd3d16949171282c8252dfd6f82d2e7378;p=postgresql Remove redundant CREATEUSER/NOCREATEUSER options in CREATE ROLE et al. Once upon a time we did not have a separate CREATEROLE privilege, and CREATEUSER effectively meant SUPERUSER. When we invented CREATEROLE (in 8.1) we also added SUPERUSER so as to have a less confusing keyword for this role property. However, we left CREATEUSER in place as a deprecated synonym for SUPERUSER, because of backwards-compatibility concerns. It's still there and is still confusing people, as for example in bug #13694 from Justin Catterson. 9.6 will be ten years or so later, which surely ought to be long enough to end the deprecation and just remove these old keywords. Hence, do so. --- diff --git a/doc/src/sgml/ref/alter_role.sgml b/doc/src/sgml/ref/alter_role.sgml index 7638817b83..da36ad9696 100644 --- a/doc/src/sgml/ref/alter_role.sgml +++ b/doc/src/sgml/ref/alter_role.sgml @@ -28,7 +28,6 @@ ALTER ROLE role_specification [ WIT SUPERUSER | NOSUPERUSER | CREATEDB | NOCREATEDB | CREATEROLE | NOCREATEROLE - | CREATEUSER | NOCREATEUSER | INHERIT | NOINHERIT | LOGIN | NOLOGIN | REPLICATION | NOREPLICATION @@ -160,8 +159,6 @@ ALTER ROLE { role_specification | A NOCREATEDB CREATEROLE NOCREATEROLE - CREATEUSER - NOCREATEUSER INHERIT NOINHERIT LOGIN diff --git a/doc/src/sgml/ref/alter_user.sgml b/doc/src/sgml/ref/alter_user.sgml index 0ffaa16da2..84a0c52191 100644 --- a/doc/src/sgml/ref/alter_user.sgml +++ b/doc/src/sgml/ref/alter_user.sgml @@ -28,7 +28,6 @@ ALTER USER role_specification [ WIT SUPERUSER | NOSUPERUSER | CREATEDB | NOCREATEDB | CREATEROLE | NOCREATEROLE - | CREATEUSER | NOCREATEUSER | INHERIT | NOINHERIT | LOGIN | NOLOGIN | REPLICATION | NOREPLICATION diff --git a/doc/src/sgml/ref/create_group.sgml b/doc/src/sgml/ref/create_group.sgml index 981ce51e5f..1d5cc9b596 100644 --- a/doc/src/sgml/ref/create_group.sgml +++ b/doc/src/sgml/ref/create_group.sgml @@ -28,7 +28,6 @@ CREATE GROUP name [ [ WITH ] password' diff --git a/doc/src/sgml/ref/create_role.sgml b/doc/src/sgml/ref/create_role.sgml index 240c21ce85..38cd4c8369 100644 --- a/doc/src/sgml/ref/create_role.sgml +++ b/doc/src/sgml/ref/create_role.sgml @@ -28,7 +28,6 @@ CREATE ROLE name [ [ WITH ] name [ [ WITH ] - - CREATEUSER - NOCREATEUSER - - - These clauses are an obsolete, but still accepted, spelling of - SUPERUSER and NOSUPERUSER. - Note that they are not equivalent to - CREATEROLE as one might naively expect! - - - - INHERIT NOINHERIT diff --git a/doc/src/sgml/ref/create_user.sgml b/doc/src/sgml/ref/create_user.sgml index 065999c85a..6c690b36df 100644 --- a/doc/src/sgml/ref/create_user.sgml +++ b/doc/src/sgml/ref/create_user.sgml @@ -28,7 +28,6 @@ CREATE USER name [ [ WITH ]