Attempt to fix the psql errors