{"Entry":{"collection":"tool","key":"pg-controldata","name":"pg_controldata","aliases":["pg_controldata"],"metadata":{"aliases":["pg_controldata"],"category":"Server applications","content_hash":"fdff4c5b1e5ee8eae285b162d9f7d9711c3c47f75777b177915bf90ebb86f76c","derived_content_hash":"30a0785a7fb6e495ffa2a68ae5b17018344c050b4aaa24dc2b05c62eaacf37af","imported_at":"2026-09-30T00:40:34.129245+08:00","name":"pg_controldata","name_zh":"","slug":"pg-controldata","summary":"pg_controldata — display control information of a PostgreSQL database cluster"}},"Definition":{"Collection":"tool","Key":"pg-controldata","SourceDatabase":"center","Version":"18","SourceTable":"command_tool","SourceKey":"pg-controldata","SourceRevision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","Facts":{"comparison_data":{"environment":[{"description":"Default data directory location","name":"PGDATA"},{"description":"Specifies whether to use color in diagnostic messages. Possible values are always , auto and never .","name":"PG_COLOR"}],"options":[],"synopsis":["pg_controldata [ option ] [[ -D | --pgdata ] datadir ]"]},"comparison_hash":"c93c4019f0b4c5932b94800e83d58e52c1610063376a54d927d9f9fb5df9ca91","description":["pg_controldata — display control information of a PostgreSQL database cluster"],"description_zh":"描述 pg_controldata 会打印在 initdb 期间初始化的信息，例如系统目录版本。它还会显示有关预写式日志和检查点处理的信息。这些信息是整个集簇范围内的，不针对任何单个数据库。 该工具只能由初始化该集簇的用户运行，因为它需要对数据目录具有读取权限。可以在命令行中指定数据目录，也可以使用环境变量 PGDATA 。该工具支持 -V 和 --version 选项，用于输出 pg_controldata 的版本并退出。它还支持 -? 和 --help 选项，用于输出可用参数。","description_zh_html":"\u003cp\u003e命令行工具 pg_controldata [ option ] [[ -D | --pgdata ] datadir ]。\u003c/p\u003e\u003ch3\u003e同版本中文手册节选\u003c/h3\u003e\u003cdiv class=\"refsect1\"\u003e\u003ch2\u003e描述\u003c/h2\u003e\u003cp\u003e\n\u003ccode class=\"command\"\u003epg_controldata\u003c/code\u003e 会打印在 \u003ccode class=\"command\"\u003einitdb\u003c/code\u003e 期间初始化的信息，例如系统目录版本。它还会显示有关预写式日志和检查点处理的信息。这些信息是整个集簇范围内的，不针对任何单个数据库。\n  \u003c/p\u003e\u003cp\u003e\n   该工具只能由初始化该集簇的用户运行，因为它需要对数据目录具有读取权限。可以在命令行中指定数据目录，也可以使用环境变量 \u003ccode class=\"envar\"\u003ePGDATA\u003c/code\u003e。该工具支持 \u003ccode class=\"option\"\u003e-V\u003c/code\u003e 和 \u003ccode class=\"option\"\u003e--version\u003c/code\u003e 选项，用于输出\n   \u003cspan class=\"application\"\u003epg_controldata\u003c/span\u003e 的版本并退出。它还支持\u003ccode class=\"option\"\u003e-?\u003c/code\u003e和 \u003ccode class=\"option\"\u003e--help\u003c/code\u003e 选项，用于输出可用参数。\n  \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003ca href=\"/zh/docs/18/app-pgcontroldata.html\"\u003e查看完整中文手册与上下文\u003c/a\u003e。\u003c/p\u003e","environment":[{"description":"Default data directory location","name":"PGDATA"},{"description":"Specifies whether to use color in diagnostic messages. Possible values are always , auto and never .","name":"PG_COLOR"}],"facts":[{"label":"Documented executable","value":"pg_controldata"},{"label":"Executable version","value":"18.6"},{"label":"Reference inventory","value":"Server applications"},{"label":"Option definition groups","value":"0"}],"facts_zh":[{"label":"手册中的可执行程序","value":"pg_controldata"},{"label":"程序版本","value":"18.6"},{"label":"参考清单","value":"服务端程序"},{"label":"选项定义组","value":"0"}],"manual_html":"\u003cdiv\u003e\u003cdiv class=\"refentry\" id=\"APP-PGCONTROLDATA\"\u003e\n\u003cdiv class=\"titlepage\"\u003e\u003c/div\u003e\n\u003cdiv class=\"refnamediv\"\u003e\n\u003ch2\u003e\u003cspan class=\"refentrytitle\"\u003e\u003cspan class=\"application\"\u003epg_controldata\u003c/span\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003epg_controldata — display control information of a \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e database cluster\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsynopsisdiv\"\u003e\n\u003ch2\u003eSynopsis\u003c/h2\u003e\n\u003cdiv class=\"cmdsynopsis\"\u003e\n\u003cp id=\"id-1.9.5.6.4.1\"\u003e\u003ccode class=\"command\"\u003epg_controldata\u003c/code\u003e [\u003cem class=\"replaceable\"\u003e\u003ccode\u003eoption\u003c/code\u003e\u003c/em\u003e] [[ \u003ccode class=\"option\"\u003e-D\u003c/code\u003e | \u003ccode class=\"option\"\u003e--pgdata\u003c/code\u003e ]\u003cem class=\"replaceable\"\u003e\u003ccode\u003edatadir\u003c/code\u003e\u003c/em\u003e]\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"R1-APP-PGCONTROLDATA-1\"\u003e\n\u003ch2\u003eDescription\u003c/h2\u003e\n\u003cp\u003e\u003ccode class=\"command\"\u003epg_controldata\u003c/code\u003e prints information initialized during \u003ccode class=\"command\"\u003einitdb\u003c/code\u003e, such as the catalog version. It also shows information about write-ahead logging and checkpoint processing. This information is cluster-wide, and not specific to any one database.\u003c/p\u003e\n\u003cp\u003eThis utility can only be run by the user who initialized the cluster because it requires read access to the data directory. You can specify the data directory on the command line, or use the environment variable \u003ccode class=\"envar\"\u003ePGDATA\u003c/code\u003e. This utility supports the options \u003ccode class=\"option\"\u003e-V\u003c/code\u003e and \u003ccode class=\"option\"\u003e--version\u003c/code\u003e, which print the \u003cspan class=\"application\"\u003epg_controldata\u003c/span\u003e version and exit. It also supports options \u003ccode class=\"option\"\u003e-?\u003c/code\u003e and \u003ccode class=\"option\"\u003e--help\u003c/code\u003e, which output the supported arguments.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.6.6\"\u003e\n\u003ch2\u003eEnvironment\u003c/h2\u003e\n\u003cdiv class=\"variablelist\"\u003e\n\u003cdl class=\"variablelist\"\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"envar\"\u003ePGDATA\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eDefault data directory location\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"envar\"\u003ePG_COLOR\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies whether to use color in diagnostic messages. Possible values are \u003ccode class=\"literal\"\u003ealways\u003c/code\u003e, \u003ccode class=\"literal\"\u003eauto\u003c/code\u003e and \u003ccode class=\"literal\"\u003enever\u003c/code\u003e.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003c/div\u003e","manual_path":"app-pgcontroldata.html","options":[],"related":[],"release":{"channel":"stable","evidence_kind":"English manual and source declarations","label":"18.6","major":"18","manifest":{"index":"index.html","major":"18","pages":1148,"pdf":{"A4":{"built_at":"2026-09-26","bytes":15865106,"pages":3154,"sha256":"19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190","url":"/files/documentation/pdf/18/postgresql-18-A4.pdf"},"US":{"built_at":"2026-09-26","bytes":15748059,"pages":3328,"sha256":"facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319","url":"/files/documentation/pdf/18/postgresql-18-US.pdf"}},"release":"18.6","source_mode":"en SGML built with pinned official archive","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","svg_assets":3,"tree":"18"},"ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sections":[],"sections_zh":[],"signature":"pg_controldata [ option ] [[ -D | --pgdata ] datadir ]","sources":[{"anchor":"","file":"app-pgcontroldata.html","label":"18.6 English manual · app-pgcontroldata.html","sha256":"4f6378310417afe2c5671afffc9bd9846fb322b65c6141d940e34aaf81271cc2","url":"/docs/18/app-pgcontroldata.html"},{"anchor":"","file":"reference-server.html","label":"Server applications inventory","sha256":"e9f8bbcc8e3641fadd1d20991e8aad6b532155b786ba5a1b7b364ec4f1a5bef3","url":"/docs/18/reference-server.html"}],"synopsis":["pg_controldata [ option ] [[ -D | --pgdata ] datadir ]"],"tables":[{"columns":[{"key":"signature","label":"Option and arguments"},{"key":"summary","label":"Description"}],"key":"options","rows":[],"title":"Documented options"},{"columns":[{"key":"name","label":"Variable"},{"key":"description","label":"Meaning"}],"key":"environment","rows":[{"description":"Default data directory location","name":"PGDATA"},{"description":"Specifies whether to use color in diagnostic messages. Possible values are always , auto and never .","name":"PG_COLOR"}],"title":"Environment variables"}],"tables_zh":[{"columns":[{"key":"signature","label":"选项与参数"},{"key":"summary","label":"说明"}],"key":"options","rows":[],"title":"手册中的选项"},{"columns":[{"key":"name","label":"变量"},{"key":"description","label":"含义"}],"key":"environment","rows":[{"description":"默认数据目录位置","name":"PGDATA"},{"description":"指定诊断消息是否使用颜色。可选值为 always 、 auto 和 never 。","name":"PG_COLOR"}],"title":"环境变量"}],"zh_from":{"authored_translation":"source-derived-identity","body_sha256":"5ed4abfb1faacc35aa06bab020046f9d90c728387ec4fbd2d905ce5e91fca11a","kind":"same-version-chinese-manual-with-source-derived-identity","manual":{"anchor":"","build_id":107,"extraction":"command-description-and-options","fragment_sha256":"4ddee7b4cf53a55c7198c04d3255d501326681da9699ec5c91ab762f6bb841ac","locale":"zh-Hans","page_key":"app-pgcontroldata.html","source_hash":"9f808509b10e9abfce268b9e1995508c01815398653319a4a0d2b50a699a4161","source_revision":"unknown:rendered-translation-baseline","translated_from_revision":null,"translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","url":"/zh/docs/18/app-pgcontroldata.html","version":"18"},"runtime_rerun":false,"source_facts_revision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8"}},"ManualEvidence":{"manual_path":"app-pgcontroldata.html","release":{"channel":"stable","evidence_kind":"English manual and source declarations","label":"18.6","major":"18","manifest":{"index":"index.html","major":"18","pages":1148,"pdf":{"A4":{"built_at":"2026-09-26","bytes":15865106,"pages":3154,"sha256":"19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190","url":"/files/documentation/pdf/18/postgresql-18-A4.pdf"},"US":{"built_at":"2026-09-26","bytes":15748059,"pages":3328,"sha256":"facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319","url":"/files/documentation/pdf/18/postgresql-18-US.pdf"}},"release":"18.6","source_mode":"en SGML built with pinned official archive","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","svg_assets":3,"tree":"18"},"ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sources":[{"anchor":"","file":"app-pgcontroldata.html","label":"18.6 English manual · app-pgcontroldata.html","sha256":"4f6378310417afe2c5671afffc9bd9846fb322b65c6141d940e34aaf81271cc2","url":"/docs/18/app-pgcontroldata.html"},{"anchor":"","file":"reference-server.html","label":"Server applications inventory","sha256":"e9f8bbcc8e3641fadd1d20991e8aad6b532155b786ba5a1b7b364ec4f1a5bef3","url":"/docs/18/reference-server.html"}]},"MeasuredEvidence":{}},"Text":{"Collection":"tool","Key":"pg-controldata","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_controldata","Summary":"pg_controldata — display control information of a PostgreSQL database cluster","BodyHTML":"\u003cdiv\u003e\u003cdiv id=\"APP-PGCONTROLDATA\"\u003e\n\u003cdiv\u003e\u003c/div\u003e\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e\u003cspan\u003epg_controldata\u003c/span\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003epg_controldata — display control information of a \u003cspan\u003ePostgreSQL\u003c/span\u003e database cluster\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv\u003e\n\u003ch2\u003eSynopsis\u003c/h2\u003e\n\u003cdiv\u003e\n\u003cp id=\"id-1.9.5.6.4.1\"\u003e\u003ccode\u003epg_controldata\u003c/code\u003e [\u003cem\u003e\u003ccode\u003eoption\u003c/code\u003e\u003c/em\u003e] [[ \u003ccode\u003e-D\u003c/code\u003e | \u003ccode\u003e--pgdata\u003c/code\u003e ]\u003cem\u003e\u003ccode\u003edatadir\u003c/code\u003e\u003c/em\u003e]\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv id=\"R1-APP-PGCONTROLDATA-1\"\u003e\n\u003ch2\u003eDescription\u003c/h2\u003e\n\u003cp\u003e\u003ccode\u003epg_controldata\u003c/code\u003e prints information initialized during \u003ccode\u003einitdb\u003c/code\u003e, such as the catalog version. It also shows information about write-ahead logging and checkpoint processing. This information is cluster-wide, and not specific to any one database.\u003c/p\u003e\n\u003cp\u003eThis utility can only be run by the user who initialized the cluster because it requires read access to the data directory. You can specify the data directory on the command line, or use the environment variable \u003ccode\u003ePGDATA\u003c/code\u003e. This utility supports the options \u003ccode\u003e-V\u003c/code\u003e and \u003ccode\u003e--version\u003c/code\u003e, which print the \u003cspan\u003epg_controldata\u003c/span\u003e version and exit. It also supports options \u003ccode\u003e-?\u003c/code\u003e and \u003ccode\u003e--help\u003c/code\u003e, which output the supported arguments.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv id=\"id-1.9.5.6.6\"\u003e\n\u003ch2\u003eEnvironment\u003c/h2\u003e\n\u003cdiv\u003e\n\u003cdl\u003e\n\u003cdt\u003e\u003cspan\u003e\u003ccode\u003ePGDATA\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eDefault data directory location\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan\u003e\u003ccode\u003ePG_COLOR\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies whether to use color in diagnostic messages. Possible values are \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003eauto\u003c/code\u003e and \u003ccode\u003enever\u003c/code\u003e.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003c/div\u003e","SourceRevision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","ContentHash":"5bf18f31cec5407ed095505adde5da94053e2540520035272c9c828109ce13d1","Payload":{"description":["pg_controldata — display control information of a PostgreSQL database cluster"],"manual_html":"\u003cdiv\u003e\u003cdiv class=\"refentry\" id=\"APP-PGCONTROLDATA\"\u003e\n\u003cdiv class=\"titlepage\"\u003e\u003c/div\u003e\n\u003cdiv class=\"refnamediv\"\u003e\n\u003ch2\u003e\u003cspan class=\"refentrytitle\"\u003e\u003cspan class=\"application\"\u003epg_controldata\u003c/span\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003epg_controldata — display control information of a \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e database cluster\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsynopsisdiv\"\u003e\n\u003ch2\u003eSynopsis\u003c/h2\u003e\n\u003cdiv class=\"cmdsynopsis\"\u003e\n\u003cp id=\"id-1.9.5.6.4.1\"\u003e\u003ccode class=\"command\"\u003epg_controldata\u003c/code\u003e [\u003cem class=\"replaceable\"\u003e\u003ccode\u003eoption\u003c/code\u003e\u003c/em\u003e] [[ \u003ccode class=\"option\"\u003e-D\u003c/code\u003e | \u003ccode class=\"option\"\u003e--pgdata\u003c/code\u003e ]\u003cem class=\"replaceable\"\u003e\u003ccode\u003edatadir\u003c/code\u003e\u003c/em\u003e]\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"R1-APP-PGCONTROLDATA-1\"\u003e\n\u003ch2\u003eDescription\u003c/h2\u003e\n\u003cp\u003e\u003ccode class=\"command\"\u003epg_controldata\u003c/code\u003e prints information initialized during \u003ccode class=\"command\"\u003einitdb\u003c/code\u003e, such as the catalog version. It also shows information about write-ahead logging and checkpoint processing. This information is cluster-wide, and not specific to any one database.\u003c/p\u003e\n\u003cp\u003eThis utility can only be run by the user who initialized the cluster because it requires read access to the data directory. You can specify the data directory on the command line, or use the environment variable \u003ccode class=\"envar\"\u003ePGDATA\u003c/code\u003e. This utility supports the options \u003ccode class=\"option\"\u003e-V\u003c/code\u003e and \u003ccode class=\"option\"\u003e--version\u003c/code\u003e, which print the \u003cspan class=\"application\"\u003epg_controldata\u003c/span\u003e version and exit. It also supports options \u003ccode class=\"option\"\u003e-?\u003c/code\u003e and \u003ccode class=\"option\"\u003e--help\u003c/code\u003e, which output the supported arguments.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.6.6\"\u003e\n\u003ch2\u003eEnvironment\u003c/h2\u003e\n\u003cdiv class=\"variablelist\"\u003e\n\u003cdl class=\"variablelist\"\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"envar\"\u003ePGDATA\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eDefault data directory location\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"envar\"\u003ePG_COLOR\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies whether to use color in diagnostic messages. Possible values are \u003ccode class=\"literal\"\u003ealways\u003c/code\u003e, \u003ccode class=\"literal\"\u003eauto\u003c/code\u003e and \u003ccode class=\"literal\"\u003enever\u003c/code\u003e.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003c/div\u003e","related":[],"sections":[],"tables":[{"columns":[{"key":"signature","label":"Option and arguments"},{"key":"summary","label":"Description"}],"key":"options","rows":[],"title":"Documented options"},{"columns":[{"key":"name","label":"Variable"},{"key":"description","label":"Meaning"}],"key":"environment","rows":[{"description":"Default data directory location","name":"PGDATA"},{"description":"Specifies whether to use color in diagnostic messages. Possible values are always , auto and never .","name":"PG_COLOR"}],"title":"Environment variables"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
