About Lesson
To start the cluster use the following command
pg_ctl start -D DATA_DIRECTORY
To stop the cluster use the following command
pg_ctl stop -D DATA_DIRECTORY
There are 3 modes in stopping the cluster. They are
Shutdown modes are:
- smart            quit after all clients have disconnected
- fast         quit directly, with proper shutdown (default)
- immediate    quit without complete shutdown; will lead to recovery on restart
More information:Â https://postgreshelp.com/operating-system-kill-signals-on-postgresql/