su - postgres psql <database>
\dt - show tables \l - show databases \d <table> - describe table
pg_dump <dbname> >file