title: How to pass SQL query to psql as a argument containing double quotes
body: <p>I am trying to:</p>
  
  <pre><code>psql -c "COPY ( SELECT * FROM "Users" LIMIT 10 ) TO STDOUT WITH CSV HEADER" &gt; out.csv
  </code></pre>
  
  <p>However double quotes inside query (<code>"Users"</code>) are removed and psql returns error that <code>Relation users does not exist</code>. I tried to escape quotes like this <code>\"Users\"</code>. but they are still removed. What can I do?</p>