Fix psql syntax error for Travis CI; #1078