sudo systemctl restart postgresql

Category: Databases & SQL

sudo systemctl restart postgresql

Restart PostgreSQL after config changes

Cycles the whole service, stopping and starting every cluster and dropping all client connections. Use it after editing postgresql.conf parameters flagged as requiring a restart. For pg_hba.conf or reloadable tuning, sudo systemctl reload postgresql is less disruptive.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.