how to restart the postgres database by use ssh in ubuntu code example Example: how to restart postgresql ubuntu sudo service postgresql restart