sudo pg_ctlcluster 16 main stop

Category: Databases & SQL

sudo pg_ctlcluster 16 main stop

Stop the main PostgreSQL 16 cluster

pg_ctlcluster controls a cluster, Debian's term for the set of databases served by one postmaster; 16 is the major version and main the cluster name. Stopping is graceful: new connections are refused and in-flight transactions finish before the postmaster exits. Run it as root or the cluster owner.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.