This is a very handy psql cheatsheet.One should be good 80%+ of time between that and the awesome pgcli.