v16 GRANT role TO role needs a multi-option setting capability - Mailing list pgsql-hackers

From David G. Johnston
Subject v16 GRANT role TO role needs a multi-option setting capability
Date
Msg-id CAKFQuwa0GiMv7+e28An4f_X9E_r5_U1xOy+BK2SLv=6dKh=C4Q@mail.gmail.com
Whole thread Raw
Responses Re: v16 GRANT role TO role needs a multi-option setting capability
List pgsql-hackers
Hey,

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.

GRANT role_name [, ...] TO role_specification [, ...]
    [ WITH { ADMIN | INHERIT | SET } { OPTION | TRUE | FALSE } ] [, ...]
    [ GRANTED BY role_specification ]

i.e., multiple WITH clauses

GRANT admin1, admin2 TO usr1, usr2
WITH ADMIN OPTION,
WITH SET FALSE,
WITH INHERIT TRUE
GRANTED BY createroleuser;

Personally, I'm fine with any given GRANT command of this form having only a single GRANTED BY specification.

David J.

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: run pgindent on a regular basis / scripted manner
Next
From: James Coleman
Date:
Subject: Re: Fix incorrect comment reference