sudo service postgresql restart
sudo service postgresql start
sudo service postgresql restart
# To restart the postgresql service
sudo /etc/init.d/postgresql restart
pg_ctl -D "C:Program FilesPostgreSQL12data" restartCode language: JavaScript (javascript)