title: Saving psql output to csv file
body: <p>I have a query written in a file located at /path/to/query.  How can I save the output result to a csv file, without using COPY in the query?  I tried the following command, but the output file's fields are separated by " | ".</p>
  
  <pre><code>psql -U username -d dbname -f /path/to/query -o /path/to/output/file -F ','
  </code></pre>