PG_CONTROLDATA(1)
π pg_controldata(1) β display control information of a PostgreSQL database cluster π
π NAME π
pg_controldata β display control information of a PostgreSQL database cluster. π
β¨ SYNOPSIS β¨
okay so the shape is literally this, bestie:
pg_controldata [option] [[-D | --pgdata]datadir]
πΈ DESCRIPTION πΈ
pg_controldata prints information initialized during initdb, such as the catalog version. Not me being obsessed with the catalog version, but there it is. π It also shows information about write-ahead logging and checkpoint processing. This info is cluster-wide, and not specific to any one database. Periodt. β¨
Okay so real talk: this utility can only be run by the user who initialized the cluster, because it requires read access to the data directory. No cap, that's the vibe check. π«Ά You can specify the data directory on the command line β thatβs the [-D | --pgdata] datadir situation in the synopsis β or use the environment variable PGDATA. π¦
Options it supports:
-V,--versionβ print thepg_controldataversion and exit. π«-?,--helpβ output the supported arguments. π
π ENVIRONMENT π
These env vars are the backup dancers:
PGDATAβ default data directory location. πPG_COLORβ specifies whether to use color in diagnostic messages. Possible values arealways,autoandnever. π
π« PostgreSQL 13.23 Documentation, dated 2025 β that's the PG_CONTROLDATA(1) sign-off, byeee bestie π«
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-server 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13-server 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13-server 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13-server 13.23-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms