psql -U username -d database_name
psql -U username -d database_name -h hostname -p port
\l
CREATE DATABASE database_name;
DROP DATABASE database_name;
\c database_name
\dt
\d table_name
DROP TABLE table_name;
\du
CREATE USER username WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE database_name TO username;
DROP USER username;
\conninfo
\version
\q
\?
\h command_name
\i /path/to/script.sql