pg_ctl
Utility for controlling a PostgreSQL server and database cluster. More information: https://www.postgresql.org/docs/current/app-pg-ctl.html.
-
Initialize a new PostgreSQL database cluster:
pg_ctl -D {{data_directory}} init
-
Start a PostgreSQL server:
pg_ctl -D {{data_directory}} start
-
Stop a PostgreSQL server:
pg_ctl -D {{data_directory}} stop
-
Restart a PostgreSQL server:
pg_ctl -D {{data_directory}} restart
-
Reload the PostgreSQL server configuration:
pg_ctl -D {{data_directory}} reload
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.