本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
SVV_ROLE_GRANTS
使用 SVV _ ROLE _ GRANTS 來檢視叢集中明確授與角色的角色清單。
SVV_ ROLE _ GRANTS 對下列使用者可見:
超級使用者
具有ACCESSSYSTEMTABLE權限的使用者
其他使用者只能看到他們有權存取或擁有的身分。
資料表欄
欄名稱 | 資料類型 | 描述 |
---|---|---|
role_id | integer | 角色的 ID。 |
role_name | text | 角色的名稱。 |
granted_role_id | integer | 授予角色的 ID。 |
granted_role_name | text | 已授予角色的名稱。 |
範例查詢
下列範例會傳回 SVV _ ROLE _ 的輸出GRANTS。
GRANT ROLE role1 TO ROLE role2; GRANT ROLE role2 TO ROLE role3; SELECT role_name, granted_role_name FROM svv_role_grants; role_name | granted_role_name -----------+-------------------- role2 | role1 role3 | role2 (2 rows)