title: PostgreSQL: database restore from dump - syntax error
body: <p>I'm trying to restore a PostgreSQL database by executing the SQL that pg_dump created, on an empty database. </p>
  
  <p>I'm getting this error:</p>
  
  <pre><code>ERROR:  syntax error at or near "\"
  LINE 5211: \.
  </code></pre>
  
  <p>lines 5210 and 5211 read:</p>
  
  <pre><code>COPY auth_group (id, name) FROM stdin;
  \.
  </code></pre>
  
  <p>It works fine on my Linux server, where I use this command:</p>
  
  <p>psql -U dbname &lt; dumpfile.sql</p>
  
  <p>but on Windows, I'm not sure how to do the same, so I've been trying to run the dumpfile's sql from pgAdminIII query utility. </p>
  
  <p>What the recommended way of importing a db from a dump on Windows? Or: how can that syntax issue be resolve?</p>
  
  <p>Any help is much appreciated!</p>
  
  <p>Martin</p>