title: pg_restore not working for .dump file
body: <p>I'm trying to restore a database to a new environment and pg_dump/pg_restore seems like the best way for me to do that.</p>
  
  <p>I've run the pg_dump command with the following code which has produced my dump file:</p>
  
  <pre class="lang-none prettyprint-override"><code>pg_dump -v -Fc --host=test.postgres.database.azure.com --port=5432 --username=test@test --dbname=test &gt; test.dump
  </code></pre>
  
  <p>However when I run pg_restore it is not able to restore the database. I have run into two separate errors when trying two separate commands. The first error </p>
  
  <p><a href="https://i.stack.imgur.com/M3YxH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M3YxH.png" alt="pg_error1"></a> </p>
  
  <p>occurs when i use the following command</p>
  
  <pre class="lang-none prettyprint-override"><code>pg_restore -h test.postgres.database.azure.com -p 5432 -U test@test -C test.dump
  </code></pre>
  
  <p>and the second </p>
  
  <p><a href="https://i.stack.imgur.com/1y22d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1y22d.png" alt="enter image description here"></a> </p>
  
  <p>occurs upon using this command</p>
  
  <pre><code>pg_restore -h test.postgres.database.azure.com -p 5432 -U test@test -C -Fc test.dump
  </code></pre>
  
  <p>I really don't understand what is going wrong here. All other answers I have found that get these same errors were encountered when people tried to restore plain text files but that's not what I'm attempting to do here. Any help would be greatly appreciated.</p>