

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

# SVV\_ROLES
<a name="r_SVV_ROLES"></a>

使用 SVV\_ROLES 查看角色信息。

此表对所有用户可见。

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


| 列名称  | 数据类型  | 说明  | 
| --- | --- | --- | 
| role\_id | 整数 | 角色 ID。 | 
| role\_name | 文本 | 角色的名称。 | 
| role\_owner | 文本 | 角色拥有者的名称。 | 
| external\_id | 文本 | 角色在第三方身份提供商中的唯一标识符。 | 

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

以下示例将返回 SVV\_ROLES 的输出。

```
SELECT role_name,role_owner FROM svv_roles WHERE role_name IN ('role1', 'role2');

 role_name | role_owner
-----------+------------
   role1   | superuser
   role2   | superuser
```