

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# SVV\$1ROLE\$1GRANTS
<a name="r_SVV_ROLE_GRANTS"></a>

使用 SVV\$1ROLE\$1GRANTS 查看在集群中显式授予的角色的角色列表。

SVV\$1ROLE\$1GRANTS 对以下用户可见：
+ 超级用户
+ 拥有 ACCESS SYSTEM TABLE 权限的用户

其他用户只能看到他们有权访问或拥有的身份。

## 表列
<a name="r_SVV_ROLE_GRANTS-table-columns"></a>

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/redshift/latest/dg/r_SVV_ROLE_GRANTS.html)

## 示例查询
<a name="r_SVV_ROLE_GRANTS-sample-query"></a>

以下示例将返回 SVV\$1ROLE\$1GRANTS 的输出。

```
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)
```