pg_lsclusters1
Show information about all postgresql clusters
Usage
pg_lsclusters [options]
[version
[cluster]]
Overview
This command list the status and some configuration details of all clusters. If a version and optionally a cluster name are given, only these are shown.
Options
-
-h, --no-header -
Do not print the column header line.
-
-j, --json -
Output information in JSON format. Needs JSON.pm installed. (Debian package: libjson-perl)
-
-s, --start-conf -
Include start.conf information in status column.
-
--help -
Print usage help.
Notes
The cluster status is shown as online or down. If a recovery.conf file is found in the data directory, ,recovery is appended. The latter needs read access to the data directory, which only root and the cluster owner have.
The output lines are colored green and red to indicate the cluster status visually.
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.
--help since Debian 10 (Buster);
--json since Debian 10 (Buster);
--start-conf since Debian 10 (Buster);
-j since Debian 10 (Buster);
-s since Debian 10 (Buster).