Postgres Cheat Sheet psql -h localhost -U postgres -d [db_name] Disable word wrap PAGER="less -S" psql -h localhost -U postgres -d [db_name] Connection Show connection info \conninfo Schema List tables \dt Fields \d+ [table] Queries select * from [table];