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 needs JSON.pm installed (Debian package: libjson-perl). no cap, it will not work without it.
  • -s, --start-conf β€” include start.conf info 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 ,recovery thing β€” 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 ,recovery for 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