2 doc/src/sgml/ref/pg_controldata.sgml
3 PostgreSQL documentation
6 <refentry id="APP-PGCONTROLDATA">
7 <indexterm zone="app-pgcontroldata">
8 <primary>pg_controldata</primary>
12 <refentrytitle><application>pg_controldata</application></refentrytitle>
13 <manvolnum>1</manvolnum>
14 <refmiscinfo>Application</refmiscinfo>
18 <refname>pg_controldata</refname>
19 <refpurpose>display control information of a <productname>PostgreSQL</productname> database cluster</refpurpose>
24 <command>pg_controldata</command>
25 <arg choice="opt"><replaceable class="parameter">option</replaceable></arg>
26 <arg choice="opt"><arg choice="opt"><option>-D</option></arg> <replaceable class="parameter">datadir</replaceable></arg>
30 <refsect1 id="R1-APP-PGCONTROLDATA-1">
31 <title>Description</title>
33 <command>pg_controldata</command> prints information initialized during
34 <command>initdb</>, such as the catalog version.
35 It also shows information about write-ahead logging and checkpoint
36 processing. This information is cluster-wide, and not specific to any one
41 This utility can only be run by the user who initialized the cluster because
42 it requires read access to the data directory.
43 You can specify the data directory on the command line, or use
44 the environment variable <envar>PGDATA</>. This utility supports the options
45 <option>-V</> and <option>--version</>, which print the
46 <application>pg_controldata</application> version and exit. It also
47 supports options <option>-?</> and <option>--help</>, which output the
53 <title>Environment</title>
57 <term><envar>PGDATA</envar></term>
61 Default data directory location