pg_controldata
pg_controldata — 显示 PostgreSQL 数据库集簇的控制信息
当前查看 PostgreSQL 18.6。
说明
pg_controldata — 显示 PostgreSQL 数据库集簇的控制信息
- 手册中的可执行程序
- pg_controldata
- 程序版本
- 18.6
- 参考清单
- 服务端程序
- 选项定义组
- 0
用法
pg_controldata [ option ] [[ -D | --pgdata ] datadir ]手册中的选项
| 选项与参数 | 说明 |
|---|---|
| 未收录相关条目。 | |
环境变量
| 变量 | 含义 |
|---|---|
| PGDATA | 默认数据目录位置 |
| PG_COLOR | 指定诊断消息是否使用颜色。可选值为 always 、 auto 和 never 。 |
手册定义
pg_controldata
pg_controldata — 显示 PostgreSQL 数据库集簇的控制信息
大纲
pg_controldata [option] [[ -D | --pgdata ]datadir]
说明
pg_controldata会打印在initdb期间初始化的信息,例如系统目录版本。它还会显示有关预写式日志和检查点处理的信息。这些信息是整个集簇范围内的,不针对任何单个数据库。
该工具只能由初始化该集簇的用户运行,因为它需要对数据目录具有读取权限。可以在命令行中指定数据目录,也可以使用环境变量PGDATA。该工具支持-V和--version选项,用于输出 pg_controldata的版本并退出。它还支持-?和--help选项,用于输出可用参数。
环境
PGDATA-
默认数据目录位置
PG_COLOR-
指定诊断消息是否使用颜色。可选值为
always、auto和never。
文档与源码
来源构建
- 版本
- 18.6
- 构建
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- 来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
版本比较
PostgreSQL 18 → 19: 属性变化。
以下差异保留原始字段名与英文源描述。
--- PostgreSQL 18
+++ PostgreSQL 19
@@ -9,8 +9,33 @@
"name": "PG_COLOR"
}
],
- "options": [],
+ "options": [
+ {
+ "description": "Specifies the directory where the database cluster is stored.",
+ "names": [
+ "-D datadir",
+ "--pgdata= datadir"
+ ],
+ "signature": "-D datadir --pgdata= datadir"
+ },
+ {
+ "description": "Print the pg_controldata version and exit.",
+ "names": [
+ "-V",
+ "--version"
+ ],
+ "signature": "-V --version"
+ },
+ {
+ "description": "Show help about pg_controldata command line arguments, and exit.",
+ "names": [
+ "-?",
+ "--help"
+ ],
+ "signature": "-? --help"
+ }
+ ],
"synopsis": [
- "pg_controldata [ option ] [[ -D | --pgdata ] datadir ]"
+ "pg_controldata [ option ] [ [ -D | --pgdata ] datadir ]"
]
}
比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。
相关条目
导出 JSON · 返回命令行工具 · 收录范围为 PostgreSQL 10 至 20;最早采样版本不一定是实际引入版本。