how to restart postgres terminal code example
Example 1: restart postgres ubuntu
sudo service postgresql restart
Example 2: restart postgreSql from terminal
pg_ctl -D "C:\Program Files\PostgreSQL\12\data" restartCode language: JavaScript (javascript)