1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:02:18 +02:00

Add pg_ctl page (#1835)

This commit is contained in:
David Heimann 2017-12-27 08:55:16 -05:00 committed by Starbeamrainbowlabs
parent 8963a4ea3c
commit 22042bb46e

19
pages/common/pg_ctl.md Normal file
View file

@ -0,0 +1,19 @@
# 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`