ubuntu how to restart postgres code example Example: restart postgres ubuntu sudo service postgresql restart