check postgres process in mac code example
Example 1: check postgres version in ubuntu
$ locate bin/postgres
/usr/lib/postgresql/9.3/bin/postgres
Example 2: check postgres process in mac
ps -ef | grep postgres
$ locate bin/postgres
/usr/lib/postgresql/9.3/bin/postgres
ps -ef | grep postgres