title: PostgreSQL 8.4 COPY command parse error
body: <p>I'm novice in PostgreSQL 8.4, I'm trying to export csv files from temporary tables.</p>
  
  <p>As I wrote</p>
  
  <pre><code>SET client_encoding TO 'SJIS';
  \copy temp_table TO 'temp_table.csv' WITH CSV HEADER;
  SET client_encoding TO 'UTF8';
  </code></pre>
  
  <p>However, this code returns error like</p>
  
  <p><code>\copy: parse error at ";"</code></p>
  
  <p>Please help me...
  Thank you in advance!</p>