The existence of this file in the data directory is used to help
pg_ctl determine if the server is
- currently running or not.
+ currently running.
- An example of starting the server, blocking until the server has
- come up is:
+ An example of starting the server, and waiting until the server is
+ accepting connection:
Stopping the Server
+ To stop the server, use:
- stops the server. Using the switch allows one
- to control how the backend shuts down.
+ The option allows control over
+ how the server shuts down.
Restarting the server is almost equivalent to stopping the
- server and starting it again
+ server and starting it again,
except that pg_ctl saves and reuses the command line options that
were passed to the previously running instance. To restart
the server in the simplest form, use:
To restart the server,
- waiting for it to shut down and come up again:
+ waiting for it to shut down and restart:
- To restart using port 5433 and disabling fsync> after restarting:
+ To restart using port 5433 and disabe fsync> upon restart:
$ pg_ctl -o "-F -p 5433" restart
Showing the Server Status
- Here is a sample status output from
+ Here is sample status output from