\drds
列出已定义的配置设置。这些设置可以特定于角色、特定于数据库,或同时特定于两者。 role-pattern 和 database-pattern 分别用于选择要列出的角色和数据库。省略某个模式参数或将其指定为 * 时,不会按该参数筛选,还会分别包含不特定于角色或不特定于数据库的设置。如果在命令名后追加 x ,结果会以扩展模式显示。
当前查看 PostgreSQL 18.6。
说明
列出已定义的配置设置。这些设置可以特定于角色、特定于数据库,或同时特定于两者。 role-pattern 和 database-pattern 分别用于选择要列出的角色和数据库。省略某个模式参数或将其指定为 * 时,不会按该参数筛选,还会分别包含不特定于角色或不特定于数据库的设置。如果在命令名后追加 x ,结果会以扩展模式显示。
- 客户端
- psql 18.6
- 区分大小写的写法
- \drds
用法
\drds[x] [ role-pattern [ database-pattern ] ]本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \drds | x |
手册定义
\drds[x] [role-pattern[database-pattern] ]-
列出已定义的配置设置。这些设置可以特定于角色、特定于数据库,或同时特定于两者。
role-pattern和database-pattern分别用于选择要列出的角色和数据库。省略某个模式参数或将其指定为*时,不会按该参数筛选,还会分别包含不特定于角色或不特定于数据库的设置。如果在命令名后追加x,结果会以扩展模式显示。ALTER ROLE和ALTER DATABASE命令用于定义每个角色和每个数据库的配置设置。
相关条目
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 17 → 18: 属性变化。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 17
+++ PostgreSQL 18
@@ -1,7 +1,12 @@
{
- "definition": "Lists defined configuration settings. These settings can be role-specific, database-specific, or both. role-pattern and database-pattern are used to select specific roles and databases to list, respectively. If omitted, or if * is specified, all settings are listed, including those not role-specific or database-specific, respectively. The ALTER ROLE and ALTER DATABASE commands are used to define per-role and per-database configuration settings.",
- "modifiers": [],
- "signature": "\\drds [ role-pattern [ database-pattern ] ]",
+ "definition": "Lists defined configuration settings. These settings can be role-specific, database-specific, or both. role-pattern and database-pattern are used to select specific roles and databases to list, respectively. If omitted, or if * is specified, all settings are listed, including those not role-specific or database-specific, respectively. If x is appended to the command name, the results are displayed in expanded mode. The ALTER ROLE and ALTER DATABASE commands are used to define per-role and per-database configuration settings.",
+ "modifiers": [
+ {
+ "command": "\\drds",
+ "modifiers": "x"
+ }
+ ],
+ "signature": "\\drds[x] [ role-pattern [ database-pattern ] ]",
"spellings": [
"\\drds"
]
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 10 至 20;最早采样版本不一定是实际引入版本。