title: PostgreSQL query output as a excel file
body: <p>I want to save the result of a psql query as an Excel file. 
  ie, I have a table named company with 5 column. I want to execute the query,</p>
  
  <pre><code>SELECT column_1,
         column_2,
       FROM company; 
  </code></pre>
  
  <p>And I just want to save the result of this query as a Excel file. Is it possible in PostgreSQL? If yes then please explain it. </p>
  
  <p>Thank you......</p>