All notes
Postgresql

Command line client

psql.



psql -U username -d dbname

psql "dbname=me host=hosthere user=userhere password=passwordhere port=5432 sslmode=require"

\?  # Help.
\l      # List all d's
\c dbname  # Connect to a database.
\d dbname  # Describe a db.
\dt   # Show tables.