postgresql how to running server at locally and accepting code example
Example 1: start postgres server
pg_ctl -D /usr/local/var/postgres stop
Example 2: start postgres server
brew services stop postgresql
pg_ctl -D /usr/local/var/postgres stop
brew services stop postgresql