What to do when you realize brew has updated posgresql all of a sudden
Problem:
start postgresql as usual
pg_ctl -w -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Output :
waiting for server to start.... stopped waiting
pg_ctl: could not start server
Examine the log output.
Open the log file to identify the problem
vi /usr/local/var/log/server.log
Log file error