find out where postgres is running mac code example Example: check postgres process in mac ps -ef | grep postgres