Skip to content

Instantly share code, notes, and snippets.

@CodyStringham
Last active August 29, 2015 13:56
Show Gist options
  • Save CodyStringham/9293736 to your computer and use it in GitHub Desktop.
Save CodyStringham/9293736 to your computer and use it in GitHub Desktop.
Postgres Restart

####Killing Sessions

ps aux | grep postgres
kill -9 process-number

-9 is dangerous, will force kill

####PG Restart

ps aux | grep postgres
cd /usr/local/var/postgres
ls -la
rm postmaster.pid
@beneggett
Copy link

pkill -f postgres kills all processes named that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment