From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Access Management question |
Date: | 2017-05-30 21:20:22 |
Message-ID: | 591863dc-11a2-4186-10b2-264cc523901d@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 5/30/2017 2:06 PM, chiru r wrote:
> Is there any reason, why it is showing roles name as owner of table
> instead of user?
'user' is a synonym for 'role' with login permission.
CREATE USER fred;
is exactly the same as...
CREATE ROLE fred WITH LOGIN;
when you SET ROLE rolename; its virtually the same as logging in as
rolename
> Why it is not allowed to GRANT SUPERUSER/CREATEDB etc roles Directly
> to user (using GRANT ,not ALTER USER) ?
GRANT is used to grant object related permissions or to grant role
membership, its not a 'role' nor do roles inherit special attributes
like SUPERUSER, CREATEDB.
--
john r pierce, recycling bits in santa cruz
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-05-30 21:23:59 | Re: 9.5 "chained equality" behavior |
Previous Message | chiru r | 2017-05-30 21:06:53 | Access Management question |