how to restart postgresql service code example
Example 1: restart postgres ubuntu
sudo service postgresql restart
Example 2: stpop start psql server
sudo service postgresql start
sudo service postgresql stop
sudo service postgresql restart
Example 3: restart postgresql
sudo /etc/init.d/postgresql restart