PG_CONTROLDATA(1)

πŸ“¦ version 13.23, in opensuse-leap 16.0

πŸ’– 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 the pg_controldata version 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 are always, auto and never. 🌈

πŸ’« PostgreSQL 13.23 Documentation, dated 2025 β€” that's the PG_CONTROLDATA(1) sign-off, byeee bestie πŸ’«