Using pg_ctl to control EDB Postgres Advanced Server v18
You can use the pg_ctl utility to control an EDB Postgres Advanced Server service from the command line on any platform. pg_ctl allows you to start, stop, or restart the EDB Postgres Advanced Server database server, reload the configuration parameters, or display the status of a running server. To invoke the utility, assume the identity of the cluster owner, navigate into the home directory of EDB Postgres Advanced Server, and issue the command:
./bin/pg_ctl -D <data_directory> <action>
Where:
data_directory is the location of the data controlled by the EDB Postgres Advanced Server cluster.
action specifies the action taken by the pg_ctl utility. Specify:
startto start the service.stopto stop the service.restartto stop and then start the service.reloadto send the server aSIGHUPsignal, reloading configuration parameters.statusto discover the current status of the service.
For more information about using the pg_ctl utility or the command-line options available, see the PostgreSQL core documentation.