doc: improve description of adding roles as members

Discussion: https://postgr.es/m/ZFvVZvQDliIWmOwg@momjian.us
This commit is contained in:
Bruce Momjian 2023-05-18 22:22:17 -04:00
parent f79ee34702
commit ce3673dade
2 changed files with 18 additions and 19 deletions

View File

@ -285,10 +285,11 @@ in sync when changing the above synopsis!
<term><literal>IN ROLE</literal> <replaceable class="parameter">role_name</replaceable></term> <term><literal>IN ROLE</literal> <replaceable class="parameter">role_name</replaceable></term>
<listitem> <listitem>
<para> <para>
The <literal>IN ROLE</literal> clause lists one or more existing The <literal>IN ROLE</literal> clause causes the new role to
roles to which the new role will be immediately added as a new be automatically added as a member of the specified existing
member. (Note that there is no option to add the new role as an roles. (Note that there is no option to add the new role as an
administrator; use a separate <command>GRANT</command> command to do that.) administrator; use a separate <command>GRANT</command> command
to do that.)
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -306,9 +307,9 @@ in sync when changing the above synopsis!
<term><literal>ROLE</literal> <replaceable class="parameter">role_name</replaceable></term> <term><literal>ROLE</literal> <replaceable class="parameter">role_name</replaceable></term>
<listitem> <listitem>
<para> <para>
The <literal>ROLE</literal> clause lists one or more existing The <literal>ROLE</literal> clause causes one or more specified
roles which are automatically added as members of the new role. existing roles to be automatically added as members of the new
(This in effect makes the new role a <quote>group</quote>.) role. This in effect makes the new role a <quote>group</quote>.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -85,11 +85,10 @@ PostgreSQL documentation
<term><option>--admin=<replaceable class="parameter">role</replaceable></option></term> <term><option>--admin=<replaceable class="parameter">role</replaceable></option></term>
<listitem> <listitem>
<para> <para>
Indicates a role that will be immediately added as a member of the new Indicates an existing role that will be automatically added as a member of the new
role with admin option, giving it the right to grant membership in the role with admin option, giving it the right to grant membership in the
new role to others. Multiple roles to add as members (with admin new role to others. Multiple existing roles can be specified by
option) of the new role can be specified by writing multiple writing multiple <option>-a</option> switches.
<option>-a</option> switches.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -153,11 +152,10 @@ PostgreSQL documentation
<term><option>--role=<replaceable class="parameter">role</replaceable></option></term> <term><option>--role=<replaceable class="parameter">role</replaceable></option></term>
<listitem> <listitem>
<para> <para>
Indicates a role to which this role will be added immediately as a new Indicates the new role should be automatically added as a member
member. Multiple roles to which this role will be added as a member of the specified existing role. Multiple existing roles can be
can be specified by writing multiple specified by writing multiple <option>-g</option> switches.
<option>-g</option> switches. </para>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -227,9 +225,9 @@ PostgreSQL documentation
<term><option>--member=<replaceable class="parameter">role</replaceable></option></term> <term><option>--member=<replaceable class="parameter">role</replaceable></option></term>
<listitem> <listitem>
<para> <para>
Indicates role that will be immediately added as a member of the new Indicates the specified existing role should be automatically
role. Multiple roles to add as members of the new role can be specified added as a member of the new role. Multiple existing roles can
by writing multiple <option>-m</option> switches. be specified by writing multiple <option>-m</option> switches.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>