PostgreSQL – useful stuff

(Everything below has been done on FreeBSD 10.1 with PostgreSQL 9.3) How to connect to the PostgreSQL database: su – psql pgsql -U pgsql -d template1 How to list the PostgreSQL databases \l #(that is a lowercase L not an i) How to add a user and grant...