v16 GRANT role TO role needs a multi-option setting capability

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: v16 GRANT role TO role needs a multi-option setting capability
Date: 2023-01-23 20:09:36
Message-ID: CAKFQuwa0GiMv7+e28An4f_X9E_r5_U1xOy+BK2SLv=6dKh=C4Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message James Coleman 2023-01-23 20:19:14 Re: Fix incorrect comment reference
Previous Message Tom Lane 2023-01-23 20:09:10 Re: run pgindent on a regular basis / scripted manner