Having a bit of an issue with PostgreSQL on Mac OS X 10.8.4. I accidentally did brew rm postgresql --force
while the postgres server was running. When I install
When relying on brew-installed PostgreSQL, the following command worked for shutting it down.
> brew services stop postgresql
stopping `postgresql`... (might take a while)
==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
As mentioned in another answer grepping through the list of processes and then killing anything postgres-related does not work.
ps aux | grep postgres
kill $PID