View a markdown version of this page

SVV_ROLES - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

2026 年 6 月 30 日之后,Amazon Redshift 不再支持使用 Python UDF。我们将分阶段开始执行。有关 Python 生命周期终止和迁移选项详情的更多信息,请参阅 2025 年 6 月 30 日发布的博客文章

SVV_ROLES

使用 SVV_ROLES 查看角色信息。

此表对所有用户可见。

表列

列名称 数据类型 说明
role_id integer 角色 ID。
role_name text 角色的名称。
role_owner text 角色拥有者的名称。
external_id text 角色在第三方身份提供商中的唯一标识符。

示例查询

以下示例将返回 SVV_ROLES 的输出。

SELECT role_name,role_owner FROM svv_roles WHERE role_name IN ('role1', 'role2'); role_name | role_owner -----------+------------ role1 | superuser role2 | superuser