pg_ctl

pg_ctl

TLDR

Initialize a new PostgreSQL database cluster

$ pg_ctl -D [data_directory] init
copy

Start a PostgreSQL server

$ pg_ctl -D [data_directory] start
copy

Stop a PostgreSQL server

$ pg_ctl -D [data_directory] stop
copy

Restart a PostgreSQL server

$ pg_ctl -D [data_directory] restart
copy

Reload the PostgreSQL server configuration

$ pg_ctl -D [data_directory] reload
copy

Copied to clipboard
Swissborg