1PG_CONTROLDATA(1) PostgreSQL 15.4 Documentation PG_CONTROLDATA(1)
2
3
4
6 pg_controldata - display control information of a PostgreSQL database
7 cluster
8
10 pg_controldata [option] [[-D | --pgdata]datadir]
11
13 pg_controldata prints information initialized during initdb, such as
14 the catalog version. It also shows information about write-ahead
15 logging and checkpoint processing. This information is cluster-wide,
16 and not specific to any one database.
17
18 This utility can only be run by the user who initialized the cluster
19 because it requires read access to the data directory. You can specify
20 the data directory on the command line, or use the environment variable
21 PGDATA. This utility supports the options -V and --version, which print
22 the pg_controldata version and exit. It also supports options -? and
23 --help, which output the supported arguments.
24
26 PGDATA
27 Default data directory location
28
29 PG_COLOR
30 Specifies whether to use color in diagnostic messages. Possible
31 values are always, auto and never.
32
33
34
35PostgreSQL 15.4 2023 PG_CONTROLDATA(1)