How to restart PostgreSQL installed by Brew in OSX? In Linux, it can be done by /etc/init.d/postgresql-9.2 restart. 
My OSX is not a server app. 

I think it it can be done by ALTER USER postgres with password '1234'; postgreQSL prompt but I am not sure if it is the meant way.

How can you restart the PostgreSQL server in OSX?
Brew has that covered:

brew services restart postgresql