PG_LSCLUSTERS(1)
π PG_LSCLUSTERS β¨
okay bestie, so pg_lsclusters is literally your girl for peeking at all your PostgreSQL clusters β it shows you info about every single one of them π
πΈ SYNOPSIS
pg_lsclusters [options] [version [cluster]]
π DESCRIPTION
This command lists the status plus some config deets of all the clusters. And if you hand it a version and optionally a cluster name? It's giving only those ones, no extras. main character energy fr fr π
β¨ OPTIONS β¨
-h,--no-headerβ bestie does NOT want the column header line, so this just... doesn't print it. gone. bye π-j,--jsonβ output the info in JSON format π¦. Heads up though: this needsJSON.pminstalled (Debian package:libjson-perl). no cap, it will not work without it.-s,--start-confβ includestart.confinfo in the status column. the tea is IN the status column now β--helpβ prints usage help. your lil emergency SOS button π«Ά
π NOTES
The cluster status shows up as online or down. And if a recovery.conf file is found in the data directory, ,recovery gets appended. π
okay so about that,recoverything β it needs read access to the data directory, and literally only root and the cluster owner have that. so if you're not one of them? no,recoveryfor you π
The output lines are colored green and red so you can vibe-check the cluster status visually. it's giving traffic light but make it postgres π
π AUTHOR
Martin Pitt <mpitt@debian.org>
and that's the whole page, bestie!! this one's from the Debian PostgreSQL infrastructure crew, dated 2026-07-28 π go forth and check those clusters, you absolute icon ππ₯
π¦ where this page comes from
- ubuntu stonking: postgresql-common 293ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms