Had wrong psql syntax.