public inbox for [email protected]
help / color / mirror / Atom feedRe: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE
3+ messages / 2 participants
[nested] [flat]
* Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE
@ 2024-07-08 20:29 Christophe Pettus <[email protected]>
2024-07-08 20:36 ` Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE Christophe Pettus <[email protected]>
2024-07-08 20:39 ` Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE Tom Lane <[email protected]>
0 siblings, 2 replies; 3+ messages in thread
From: Christophe Pettus @ 2024-07-08 20:29 UTC (permalink / raw)
To: Laurenz Albe <[email protected]>; +Cc: pgsql-general
> On Jul 8, 2024, at 13:25, Laurenz Albe <[email protected]> wrote:
> I didn't test it, but doesn't that allow the member rule to drop objects owned
> be the role it is a member of?
No, apparently not.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE
2024-07-08 20:29 Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE Christophe Pettus <[email protected]>
@ 2024-07-08 20:36 ` Christophe Pettus <[email protected]>
1 sibling, 0 replies; 3+ messages in thread
From: Christophe Pettus @ 2024-07-08 20:36 UTC (permalink / raw)
To: Laurenz Albe <[email protected]>; +Cc: pgsql-general
> On Jul 8, 2024, at 13:29, Christophe Pettus <[email protected]> wrote:
>
>
>
>> On Jul 8, 2024, at 13:25, Laurenz Albe <[email protected]> wrote:
>> I didn't test it, but doesn't that allow the member rule to drop objects owned
>> be the role it is a member of?
>
> No, apparently not.
Just from a quick check, it looks like you need INHERIT to inherit the ability to drop objects. The documentation strongly implies this, although it doesn't quite come out and say it.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE
2024-07-08 20:29 Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE Christophe Pettus <[email protected]>
@ 2024-07-08 20:39 ` Tom Lane <[email protected]>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2024-07-08 20:39 UTC (permalink / raw)
To: Christophe Pettus <[email protected]>; +Cc: Laurenz Albe <[email protected]>; pgsql-general
Christophe Pettus <[email protected]> writes:
>> On Jul 8, 2024, at 13:25, Laurenz Albe <[email protected]> wrote:
>> I didn't test it, but doesn't that allow the member rule to drop objects owned
>> be the role it is a member of?
> No, apparently not.
IIUC, you need at least one of SET TRUE and INHERIT TRUE to be able to
access the privileges of the role you are nominally a member of. This
extends to ownership checks as well as grantable privileges.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2024-07-08 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-07-08 20:29 Re: v16 roles, SET FALSE, INHERIT FALSE, ADMIN FALSE Christophe Pettus <[email protected]>
2024-07-08 20:36 ` Christophe Pettus <[email protected]>
2024-07-08 20:39 ` Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox