psql cheatsheet list databases \list Connect to a database \connect dbname Show what database I am currently connected to select current_database(); Show what tables are in the current database \dt Show what columns are in a table \d+ "tableName" Quit \q Turn off paging \pset pager off