Use tmpfile config for psql copy