Based on: https://gist.github.com/Kartones/dd3ff5ec5ea238d4c546#file-postgres-cheatsheet-md
Magic words:
psql -U postgres
psql -h localhost -U postgres -d postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):