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
free 100$ digital ocean credit