To fix errors like..
psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? ... could not open directory "pg_tblspc": No such file or directory ... could not open directory "pg_commit_ts": No such file or directory
Run this command:
and start again:
pg_ctl -D /usr/local/var/postgres start
brew services start postgresql