I have Postgresql 9.3 and 9.4 installed on my Linux Mint machine. How can I restart postgresql 9.4? A method to restart both versions together is also fine.
This should work:
sudo systemctl stop postgresql
sudo systemctl start postgresql