I am trying to run a posgresql query from a bash script and return the result as a csv file to STDOUT. I am able to do that either with the --csv flag or COPY TO STDOUT WITH