PosgresQL initialization might fail on Mac because there are not shered memory buffers enough.
/etc/sysctl.conf
kern.sysv.shmmax=268435456 kern.sysv.shmall=65536 kern.sysv.shmmin=1 kern.sysv.shmmni=32 kern.sysv.shmseg=8
.