In this video we will see how we setup environment variables for PostgreSQL. These variables are required to access PostgreSQL outside bin directory and also, we can access PostgreSQL utilities after setting them.
We can start and stop PostgreSQL cluster with the help of below commands:
pg_ctl status - To check the status of PostgreSQL cluster.
pg_ctl start - To start PostgreSQL cluster.
pg_ctl stop - To stop PostgreSQL cluster.
But all these works only after setting up of environment variables.