postgress restart sql code example
Example 1: restart postgresql
sudo /etc/init.d/postgresql restart
Example 2: postgresql server restart
sudo service postgresql start
sudo /etc/init.d/postgresql restart
sudo service postgresql start