💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 34.38\. `role_usage_grants` 视图`role_usage_grants`用于标出当前角色赋予或被赋予的各种对象的 `USAGE`权限。更多的信息可以在`usage_privileges`里找到。 在该视图与`usage_privileges` 之间实际仅有的差异是该视图忽略那些通过赋权给`PUBLIC`使当前用户可以访问的对象。 **Table 34-36\. `role_usage_grants` 字段** | 名字 | 数据类型 | 描述 | | --- | --- | --- | | `grantor` | `sql_identifier` | 赋予该权限的角色名称 | | `grantee` | `sql_identifier` | 被赋予该权限的角色的名称 | | `object_catalog` | `sql_identifier` | 包含该对象的数据库的名字(总是当前数据库) | | `object_schema` | `sql_identifier` | 如果适用,是包含该对象的模式的名字,否则是一个空字符串 | | `object_name` | `sql_identifier` | 对象的名字 | | `object_type` | `character_data` | `COLLATION` 或 `DOMAIN` 或 `FOREIGN DATA WRAPPER` 或 `FOREIGN SERVER` 或 `SEQUENCE` | | `privilege_type` | `character_data` | Always `USAGE` | | `is_grantable` | `yes_or_no` | 如果权限可以赋予,则为`YES`,否则为`NO` |