public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pavel Luzanov <[email protected]>
To: David G. Johnston <[email protected]>
To: PostgreSQL Hackers <[email protected]>
Subject: Re: v16 GRANT role TO role needs a multi-option setting capability
Date: Tue, 24 Jan 2023 00:07:58 +0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwa0GiMv7+e28An4f_X9E_r5_U1xOy+BK2SLv=6dKh=C4Q@mail.gmail.com>
References: <CAKFQuwa0GiMv7+e28An4f_X9E_r5_U1xOy+BK2SLv=6dKh=C4Q@mail.gmail.com>
On 23.01.2023 23:09, David G. Johnston wrote:
> GRANT role_name [, ...] TO role_specification [, ...]
> [ WITH { ADMIN | INHERIT | SET } { OPTION | TRUE | FALSE } ]
> [ GRANTED BY role_specification ]
>
> It would be really nice to complete this new feature of INHERIT/SET
> FALSE/TRUE with a multi-specification capability.
If I understand properly, the multi-specification capability is
supported in the form:
GRANT admin1, admin2 TO usr1, usr2
WITH ADMIN OPTION, SET FALSE, INHERIT TRUE;
But this doesn't seem to be reflected correctly in the documentation.
If I'm not mistaken, the current spec should be like this:
GRANT role_name [, ...] TO role_specification [, ...]
[ WITH [ { ADMIN | INHERIT | SET } { OPTION | TRUE | FALSE } ] [,
...] ]
[ GRANTED BY role_specification ]
By the way, there is suggestion to add role's membership options to the
\du+ command.[1]
[1]https://www.postgresql.org/message-id/flat/[email protected]
--
Pavel Luzanov
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: v16 GRANT role TO role needs a multi-option setting capability
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox