title: postgresql- restoring .dump file
body: <p>I am new for psql. I got from my server data.dump file. I need to restore it in my local.
  I tried these commands.</p>
  
  <p>i) psql -U postgres dbname -f servicedb.dump</p>
  
  <pre><code>Error:
        psql: warning: extra command-line argument "-f" ignored
        psql: warning: extra command-line argument "servicedb.dump" ignored
  </code></pre>
  
  <p>ii) psql -U postgres dbname &lt; servicedb.dump</p>
  
  <pre><code> Error:
                ^
   ERROR:  syntaxe error at or near "☺"
   LINE 1: ☺☺
  </code></pre>
  
  <p>What is this ".dump" file and how to restore it?</p>