mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-14 10:32:11 +03:00
381 B
381 B
pg_ctl
Utility for controlling a PostgreSQL server and database cluster.
- Start a PostgreSQL server:
pg_ctl -D {{data_directory}} -l {{log_file_name}}
- Initialize a PostgreSQL database cluster:
pg_ctl -D {{data_directory}} init
- Stop a PostgreSQL server:
pg_ctl -D {{data_directory}} stop
- Restart a PostgreSQL server:
pg_ctl -D {{data_directory}} restart