Better errors when psql fails and when we can't check the pg version
ingore psql aliases in exec_sql
Merge pull request #1167 from will/wl-better-errors-psql-version

Better errors when psql fails and when we can't check the pg version