throw error for psql, and test for it