postgres manage clusters pg_lsclusters pg_dropcluster pg_ctlcluster pg_createcluster ubuntu debian - ghdrako/doc_snipets GitHub Wiki

pg_lsclusters specifically looks for clusters managed by the pg_createcluster tool

pg_lsclusters searches the directories under /etc/postgresql to find the configuration of the clusters

pg_createcluster (and pg_lscluster, pg_ctlcluster) are Ubuntu/Debian-specific wrappers around initdb and pg_ctl precisely for the purpose of providing a simpler interface for managing multiple postgresql instances on the same host.

pg_createcluster 11 $(cluster) -- --data-checksums
pg_ctlcluster 14 testcluster start