From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | bad(dot)banana(at)outlook(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: confusing terms |
Date: | 2018-09-07 21:44:32 |
Message-ID: | 20180907214432.GG28811@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Mon, Sep 3, 2018 at 07:17:12AM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/10/static/role-membership.html
> Description:
>
> https://www.postgresql.org/docs/10/static/role-membership.html
>
> it says
>
> "Once the group role exists, you can add and remove members using the GRANT
> and REVOKE commands:
>
> GRANT group_role TO role1, ... ;
> REVOKE group_role FROM role1, ... ;"
>
> how can you add members to a newly created group role using the above
> command? shouldn't it be GRANT group_role TO user1 ??
Well, users and groups are both roles. The sentence says below this:
You can grant membership to other group roles, too (since there isn't
really any distinction between group roles and non-group roles).
meaning you can grant group role membership to user and other group
roles.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Pryzby | 2018-09-08 01:29:57 | link to Slow_Query_Questions from wiki/Main Page |
Previous Message | Bruce Momjian | 2018-09-07 00:43:11 | Re: Misc typos in documentation |