title: Get postgres table data (CSV format) in C#
body: <p>CSV get query:</p>
  
  <pre><code>COPY (select * from a.table) TO STDOUT WITH CSV DELIMITER ';' HEADER
  </code></pre>
  
  <p>How to get query data in C#, when trying with <strong>command.ExecuteReader()</strong> getting an error:</p>
  
  <pre><code>System.Exception: Received unexpected backend message CopyOutResponse. Please file a bug.
  </code></pre>