\dX
列出扩展统计信息。如果指定了 pattern ,则只列出名称与模式匹配的扩展统计信息。如果在命令名后追加 x ,结果会以扩展模式显示。
当前查看 PostgreSQL 18。
中文定义与说明
列出扩展统计信息。如果指定了
pattern,则只列出名称与模式匹配的扩展统计信息。如果在命令名后追加x,结果会以扩展模式显示。每种扩展统计信息的状态显示在以其统计类型命名的列中(例如 Ndistinct)。
defined表示在创建统计信息时请求了该信息,NULL 表示未请求。如果想知道是否已经运行了ANALYZE,以及这些统计信息是否已经对规划器可用,可以查看pg_stats_ext。
说明
列出扩展统计信息。如果指定了 pattern ,则只列出名称与模式匹配的扩展统计信息。如果在命令名后追加 x ,结果会以扩展模式显示。
- 客户端
- psql 18.7
- 区分大小写的写法
- \dX
用法
\dX[x] [ pattern ]本版手册中的写法
| 命令 | 手册中的后缀修饰符 |
|---|---|
| \dX | x |
手册定义
列出扩展统计信息。如果指定了
pattern,则只列出名称与模式匹配的扩展统计信息。如果在命令名后追加x,结果会以扩展模式显示。每种扩展统计信息的状态显示在以其统计类型命名的列中(例如 Ndistinct)。
defined表示在创建统计信息时请求了该信息,NULL 表示未请求。如果想知道是否已经运行了ANALYZE,以及这些统计信息是否已经对规划器可用,可以查看pg_stats_ext。
相关条目
文档与源码
来源构建
- 版本
- 18.7
- 构建
- https://ftp.postgresql.org/pub/source/v18.7/postgresql-18.7.tar.bz2
- 来源指纹
1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915
版本比较
PostgreSQL 18 → 19: 属性变化。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 18
+++ PostgreSQL 19
@@ -1,12 +1,12 @@
{
- "definition": "Lists extended statistics. If pattern is specified, only those extended statistics whose names match the pattern are listed. If x is appended to the command name, the results are displayed in expanded mode. The status of each kind of extended statistics is shown in a column named after its statistic kind (e.g. Ndistinct). defined means that it was requested when creating the statistics, and NULL means it wasn't requested. You can use pg_stats_ext if you'd like to know whether ANALYZE was run and statistics are available to the planner.",
+ "definition": "Lists extended statistics. If pattern is specified, only those extended statistics whose names match the pattern are listed. If x is appended to the command name, the results are displayed in expanded mode. If + is appended to the command name, each object is listed with its associated description. The status of each kind of extended statistics is shown in a column named after its statistic kind (e.g. Ndistinct). defined means that it was requested when creating the statistics, and NULL means it wasn't requested. You can use pg_stats_ext if you'd like to know whether ANALYZE was run and statistics are available to the planner.",
"modifiers": [
{
"command": "\\dX",
- "modifiers": "x"
+ "modifiers": "x+"
}
],
- "signature": "\\dX[x] [ pattern ]",
+ "signature": "\\dX[x+] [ pattern ]",
"spellings": [
"\\dX"
]
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回psql 命令 · 收录范围为 PostgreSQL 14 至 20;最早采样版本不一定是实际引入版本。