07-18-2023, 11:12 PM
For MacOS I use this:
```
brew info postgres
```
And in output in the most end, I see:
```
...
To have launchd start postgresql now and restart at login:
brew services start postgresql
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start
```
So I just use this command `pg_ctl -D /usr/local/var/postgres start
` and `psql` begin work.
```
brew info postgres
```
And in output in the most end, I see:
```
...
To have launchd start postgresql now and restart at login:
brew services start postgresql
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start
```
So I just use this command `pg_ctl -D /usr/local/var/postgres start
` and `psql` begin work.