sudo pg_ctlcluster 16 main restart

Category: Databases & SQL

sudo pg_ctlcluster 16 main restart

Restart the main PostgreSQL 16 cluster

Stops and starts the postmaster, which drops every client connection and replays the write-ahead log (WAL) on startup. Needed for parameters that cannot be applied by reload, such as shared_buffers. Prefer sudo systemctl reload postgresql for configuration-only changes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.