pg_ctl

pg_ctl is used to start and stop the PostgreSQL server.

To start PostgreSQL, run

pg_ctl start -D /path/to/datadir

You can also use stop/restart.

pg_ctl stop -D /path/to/datadir
pg_ctl restart -D /path/to/datadir

Back to PostgreSQL

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *