]> granicus.if.org Git - postgresql/commitdiff
Fix erroneous documentation about noise word GROUP.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Sep 2017 15:10:42 +0000 (11:10 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
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.8885.66941@wrigleys.postgresql.org

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

index 7638817b830a1eb73ab59174591fe6eaf3378453..7b368b53770fe666a2253b6092883b647acf23a8 100644 (file)
@@ -46,7 +46,7 @@ ALTER ROLE { <replaceable class="PARAMETER">role_specification</replaceable> | A
 
 <phrase>where <replaceable class="PARAMETER">role_specification</replaceable> can be:</phrase>
 
-    [ GROUP ] <replaceable class="PARAMETER">role_name</replaceable>
+    <replaceable class="PARAMETER">role_name</replaceable>
   | CURRENT_USER
   | SESSION_USER
 </synopsis>
index 95637ccc8448ac2806f23203230afc2f2f1cf871..9ddb01c24321d181e97f7206fc72635867997576 100644 (file)
@@ -46,7 +46,7 @@ ALTER USER { <replaceable class="PARAMETER">role_specification</replaceable> | A
 
 <phrase>where <replaceable class="PARAMETER">role_specification</replaceable> can be:</phrase>
 
-    [ GROUP ] <replaceable class="PARAMETER">role_name</replaceable>
+    <replaceable class="PARAMETER">role_name</replaceable>
   | CURRENT_USER
   | SESSION_USER
 </synopsis>
index 79305f15dd03f052745acbf008e8fc31f87bc63e..e41012602a6b9b3200692994533c89d0f33ab87c 100644 (file)
@@ -28,7 +28,7 @@ CREATE SCHEMA IF NOT EXISTS AUTHORIZATION <replaceable class="PARAMETER">role_sp
 
 <phrase>where <replaceable class="PARAMETER">role_specification</replaceable> can be:</phrase>
 
-    [ GROUP ] <replaceable class="PARAMETER">user_name</replaceable>
+    <replaceable class="PARAMETER">user_name</replaceable>
   | CURRENT_USER
   | SESSION_USER
 </synopsis>