Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊,請參閱部落格文章
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
SVV_ROLE_GRANTS
使用 SVV_ROLE_GRANTS 來檢視叢集中明確授予角色的角色清單。
下列使用者可以看見 SVV_ROLE_GRANTS:
超級使用者
具有 ACCESS SYSTEM TABLE 許可的使用者
其他使用者只能看到他們有權存取或擁有的身分。
資料表欄
| 欄名稱 | 資料類型 | Description |
|---|---|---|
| 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)