Check If The Local Server Is Running
$ pg_isready
localhost:5432 - no response$ pg_ctl -D $HOME/.asdf/installs/postgres/12.3/data start
waiting for server to start....
...
done
server started$ pg_isready
localhost:5432 - accepting connections$ pg_isready --quietLast updated