Fix erroneous documentation about noise word GROUP.
authorTom Lane
Wed, 20 Sep 2017 15:10:42 +0000 (11:10 -0400)
committerTom Lane
Wed, 20 Sep 2017 15:10:42 +0000 (11:10 -0400)
GRANT, REVOKE, and some allied commands allow the noise word GROUP
before a role name (cf. grantee production in gram.y).  This option
does not exist elsewhere, but it had nonetheless snuck into the
documentation for ALTER ROLE, ALTER USER, and CREATE SCHEMA.

Seems to be a copy-and-pasteo in commit 31eae6028, which did expand the
syntax choices here, but not in that way.  Back-patch to 9.5 where that
came in.

Discussion: https://postgr.es/m/20170916123750[email protected]

doc/src/sgml/ref/alter_role.sgml
doc/src/sgml/ref/alter_user.sgml
doc/src/sgml/ref/create_schema.sgml

index da36ad96967e7c842c28f5787b5ec0dc48ec5a60..ec83c4a18a480e5619799bc2a8526fbc5ef25188 100644 (file)
@@ -45,7 +45,7 @@ ALTER ROLE { role_specification | A
 
 where role_specification can be:
 
-    [ GROUP ] role_name
+    role_name
   | CURRENT_USER
   | SESSION_USER
 
index 50bfae6cc3b6ba339986b861b0ebc34d3f93f7e2..70155131cbdfc629bef667cf9034198daec3b586 100644 (file)
@@ -45,7 +45,7 @@ ALTER USER { role_specification | A
 
 where role_specification can be:
 
-    [ GROUP ] role_name
+    role_name
   | CURRENT_USER
   | SESSION_USER
 
index 554a4483c543307b4eebf000f4abdbac1b4c04a4..5d29cd768ab3dd5f202b3abd63eb096af3fb38d5 100644 (file)
@@ -28,7 +28,7 @@ CREATE SCHEMA IF NOT EXISTS AUTHORIZATION role_sp
 
 where role_specification can be:
 
-    [ GROUP ] user_name
+    user_name
   | CURRENT_USER
   | SESSION_USER