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