3 PostgreSQL documentation
6 <refentry id=
"APP-PGCONTROLDATA">
8 <refentrytitle id=
"APP-PGCONTROLDATA-TITLE"><application>pg_controldata
</application></refentrytitle>
9 <manvolnum>1</manvolnum>
10 <refmiscinfo>Application
</refmiscinfo>
14 <refname>pg_controldata
</refname>
15 <refpurpose>display control information of a
<productname>PostgreSQL
</productname> database cluster
</refpurpose>
18 <indexterm zone=
"app-pgcontroldata">
19 <primary>pg_controldata
</primary>
24 <command>pg_controldata
</command>
25 <arg><replaceable class=
"parameter">datadir
</replaceable></arg>
29 <refsect1 id=
"R1-APP-PGCONTROLDATA-1">
30 <title>Description
</title>
32 <command>pg_controldata
</command> prints information initialized during
33 <command>initdb<
/>, such as the catalog version.
34 It also shows information about write-ahead logging and checkpoint
35 processing. This information is cluster-wide, and not specific to any one
40 This utility can only be run by the user who initialized the cluster because
41 it requires read access to the data directory.
42 You can specify the data directory on the command line, or use
43 the environment variable
<envar>PGDATA<
/>.
48 <title>Environment
</title>
52 <term><envar>PGDATA
</envar></term>
56 Default data directory location