Course Content
ACID Properties and Query Processing
0/2
PostgreSQL Replication
0/1
PostgreSQL Upgrade
0/1
PostgreSQL Tutorial for Absolute Beginners [Administration]
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:

  1. smart             quit after all clients have disconnected
  2. fast                  quit directly, with proper shutdown (default)
  3. immediate     quit without complete shutdown; will lead to recovery on restart

More information:  https://postgreshelp.com/operating-system-kill-signals-on-postgresql/