pull changes to pgsql

allows array() as parameter in all clauses. Although it does not cover column
aliases for arrays in (alias => column) form