title: Export query result from pgadmin to excel file
body: <p>I am trying to export the result from a query in pgadmin to a excel file i have tried:</p>
  
  <pre><code>COPY (Select * From SYSTEMS) To '/tmp/test.csv' With CSV;
  </code></pre>
  
  <p>but it returns the error:</p>
  
  <pre><code>ERROR: must be superuser to COPY to or from a file
  </code></pre>