title: In pg_restore, how can you use a postgres connection string to specify the host/database/username/password?
body: <p>When using pg_dump, you can use a postgres connection string to specify the host/database/username/password:</p>
  
  <pre><code>pg_dump postgres://someuser:somepassword@somehost.com:5432/somedatabase
  </code></pre>
  
  <p>I want to use the same sort of connection string for pg_restore:</p>
  
  <pre><code>pg_restore -f dump.dump postgres://userb:somepassword@somehost.com:5432/otherdatabase
  </code></pre>
  
  <p>But I get an error:</p>
  
  <pre><code>pg_restore: [archiver] could not open input file "postgres://userb:somepassword@somehost.com:5432/otherdatabase": No such file or directory
  </code></pre>