Re: multiple membership grants and information_schema.applicable_roles - Mailing list pgsql-hackers

From Pavel Luzanov
Subject Re: multiple membership grants and information_schema.applicable_roles
Date
Msg-id 1c156be6-5df1-03d7-adb0-a87754575e8d@postgrespro.ru
Whole thread Raw
In response to Re: multiple membership grants and information_schema.applicable_roles  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
List pgsql-hackers
On 24.07.2023 09:42, Pavel Luzanov wrote:
> Is IS_GRANTABLE a key column for ROLE_AUTHORIZATION_DESCRIPTORS?
> If not, duplicates is not possible. Right?

The answer is: no.
Duplicate pairs (grantee, role_name) is impossible only with defined key 
with this two columns.
If there is no such key or key contain another column, for example grantor,
then the information_schema.applicable_roles view definition is correct 
in this part.

-- 
Pavel Luzanov
Postgres Professional: https://postgrespro.com




pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: cataloguing NOT NULL constraints
Next
From: Tomas Vondra
Date:
Subject: Re: POC: GROUP BY optimization