start postgres on server restart code example
Example 1: restart postgres ubuntu
sudo service postgresql restart
Example 2: how to restart psql in linux
sudo service postgresql restart
# To restart the postgresql service
sudo service postgresql restart
sudo service postgresql restart
# To restart the postgresql service