title: PostgreSql : ERROR: relation "sequence" does not exist while restoring from dump file
body: <p>I get the following error while restoring database from dump file on server:</p>
  
  <blockquote>
    <p>ERROR:  relation "table_id_seq" does not exist<br>
    LINE 1: SELECT pg_catalog.setval('table_id_seq', 362, true);</p>
  </blockquote>
  
  <ul>
  <li>my local psql version is 10.2</li>
  <li>server psql version is 9.6.8</li>
  </ul>
  
  <p>Here is my dump command:</p>
  
  <pre><code>pg_dump -U username -h localhost db_name &gt; filename.sql
  </code></pre>
  
  <p>Here is my restore command on server:</p>
  
  <pre><code>psql -U username -h localhost db_name &lt; filename.sql
  </code></pre>
  
  <p>Please help, Thanks.</p>