Get more out of Postgres CLI

http://www.craigkerstiens.com/2013/02/21/more-out-of-psql/