Skip to content

Commit ce3673d

Browse files
committed
doc: improve description of adding roles as members
Discussion: https://postgr.es/m/ZFvVZvQDliIWmOwg@momjian.us
1 parent f79ee34 commit ce3673d

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

doc/src/sgml/ref/create_role.sgml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,11 @@ in sync when changing the above synopsis!
285285
<term><literal>IN ROLE</literal> <replaceable class="parameter">role_name</replaceable></term>
286286
<listitem>
287287
<para>
288-
The <literal>IN ROLE</literal> clause lists one or more existing
289-
roles to which the new role will be immediately added as a new
290-
member. (Note that there is no option to add the new role as an
291-
administrator; use a separate <command>GRANT</command> command to do that.)
288+
The <literal>IN ROLE</literal> clause causes the new role to
289+
be automatically added as a member of the specified existing
290+
roles. (Note that there is no option to add the new role as an
291+
administrator; use a separate <command>GRANT</command> command
292+
to do that.)
292293
</para>
293294
</listitem>
294295
</varlistentry>
@@ -306,9 +307,9 @@ in sync when changing the above synopsis!
306307
<term><literal>ROLE</literal> <replaceable class="parameter">role_name</replaceable></term>
307308
<listitem>
308309
<para>
309-
The <literal>ROLE</literal> clause lists one or more existing
310-
roles which are automatically added as members of the new role.
311-
(This in effect makes the new role a <quote>group</quote>.)
310+
The <literal>ROLE</literal> clause causes one or more specified
311+
existing roles to be automatically added as members of the new
312+
role. This in effect makes the new role a <quote>group</quote>.
312313
</para>
313314
</listitem>
314315
</varlistentry>

doc/src/sgml/ref/createuser.sgml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ PostgreSQL documentation
8585
<term><option>--admin=<replaceable class="parameter">role</replaceable></option></term>
8686
<listitem>
8787
<para>
88-
Indicates a role that will be immediately added as a member of the new
88+
Indicates an existing role that will be automatically added as a member of the new
8989
role with admin option, giving it the right to grant membership in the
90-
new role to others. Multiple roles to add as members (with admin
91-
option) of the new role can be specified by writing multiple
92-
<option>-a</option> switches.
90+
new role to others. Multiple existing roles can be specified by
91+
writing multiple <option>-a</option> switches.
9392
</para>
9493
</listitem>
9594
</varlistentry>
@@ -153,11 +152,10 @@ PostgreSQL documentation
153152
<term><option>--role=<replaceable class="parameter">role</replaceable></option></term>
154153
<listitem>
155154
<para>
156-
Indicates a role to which this role will be added immediately as a new
157-
member. Multiple roles to which this role will be added as a member
158-
can be specified by writing multiple
159-
<option>-g</option> switches.
160-
</para>
155+
Indicates the new role should be automatically added as a member
156+
of the specified existing role. Multiple existing roles can be
157+
specified by writing multiple <option>-g</option> switches.
158+
</para>
161159
</listitem>
162160
</varlistentry>
163161

@@ -227,9 +225,9 @@ PostgreSQL documentation
227225
<term><option>--member=<replaceable class="parameter">role</replaceable></option></term>
228226
<listitem>
229227
<para>
230-
Indicates role that will be immediately added as a member of the new
231-
role. Multiple roles to add as members of the new role can be specified
232-
by writing multiple <option>-m</option> switches.
228+
Indicates the specified existing role should be automatically
229+
added as a member of the new role. Multiple existing roles can
230+
be specified by writing multiple <option>-m</option> switches.
233231
</para>
234232
</listitem>
235233
</varlistentry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy