\drg
列出每个被授予角色成员身份的信息,包括被授予的选项( ADMIN 、 INHERIT 和/或 SET )以及授予者。关于角色成员身份,参见 GRANT 命令。
当前查看 PostgreSQL 18.6。
说明
列出每个被授予角色成员身份的信息,包括被授予的选项( ADMIN 、 INHERIT 和/或 SET )以及授予者。关于角色成员身份,参见 GRANT 命令。
- 客户端
- psql 18.6
- 区分大小写的写法
- \drg
用法
\drg[Sx] [ pattern ]本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \drg | Sx |
手册定义
相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 15 → 16: 新增收录。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 15
+++ PostgreSQL 16
@@ -1 +1,13 @@
-该版未收录
+{
+ "definition": "Lists information about each granted role membership, including assigned options ( ADMIN , INHERIT and/or SET ) and grantor. See the GRANT command for information about role memberships. By default, only grants to user-created roles are shown; supply the S modifier to include system roles. If pattern is specified, only grants to those roles whose names match the pattern are listed.",
+ "modifiers": [
+ {
+ "command": "\\drg",
+ "modifiers": "S"
+ }
+ ],
+ "signature": "\\drg[S] [ pattern ]",
+ "spellings": [
+ "\\drg"
+ ]
+}
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 16 至 20;最早采样版本不一定是实际引入版本。