

 2026 年 6 月 30 日之后，Amazon Redshift 不再支持使用 Python UDF。我们将分阶段开始执行。有关 Python 生命周期终止和迁移选项详情的更多信息，请参阅 2025 年 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\_ROLES
<a name="r_SVV_ROLES"></a>

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

此表对所有用户可见。

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


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

## 示例查询
<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
```