Re: Role Self-Administration
От
Mark Dilger
Тема
Re: Role Self-Administration
Дата
Msg-id
8B2E3EFB-237C-4FBF-A36B-A19611C50421@enterprisedb.com
Ответ на
Re: Role Self-Administration (Mark Dilger)
Список
Дерево обсуждения
Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Noah Misch <noah@leadboat.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Mark Dilger <mark.dilger@enterprisedb.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Vik Fearing <vik@postgresfriends.org>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
Re: Role Self-Administration Vik Fearing <vik@postgresfriends.org>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Robert Haas <robertmhaas@gmail.com>
Re: Role Self-Administration Stephen Frost <sfrost@snowman.net>
> On Oct 7, 2021, at 12:31 PM, Mark Dilger wrote:
>
> Let me see if I can find that again.
12.6
::=
DROP ROLE
Syntax Rules
1) Let R be the role identified by the specified .
General Rules
1) Let A be any identified by a role authorization descriptor as having been granted
to R.
2) The following is effectively executed without further Access Rule checking:
REVOKE R FROM A
3) The descriptor of R is destroyed.
So DROP ROLE bob is expected to execute the revoke command. Let's see what that says....
::=
REVOKE [ ADMIN OPTION FOR ] [ { }... ]
FROM [ { }... ]
[ GRANTED BY ]
31) If RESTRICT is specified, and there exists an abandoned privilege descriptor, abandoned view,
abandoned table constraint, abandoned assertion, abandoned domain constraint, lost domain, lost column,
lost schema, or a descriptor that includes an impacted data type descriptor, impacted collation, impacted
character set, abandoned user-defined type, or abandoned routine descriptor, then an exception condition
is raised: dependent privilege descriptors still exist.
33) Case:
a) If the is a , then
... SNIP ...
b) If the is a , then:
i) If CASCADE is specified, then all abandoned role authorization descriptors are destroyed.
ii) All abandoned privilege descriptors are destroyed.
34) For every abandoned view descriptor V, let S1.VN be the В списке pgsql-hackers по дате отправления
От: Alvaro Herrera
Дата:
От: Tom Lane
Дата: