title: problem with create database if not exist via postgres backup and restore tool
body: <p>I wrote a bat script for executing the Postgres backup and restore tool.</p>
  <p>I have a little issue with the restore flow:
  Its works fine as long as my database exists. But if it doesn't it will fail.
  <strong>My restore command:</strong></p>
  <blockquote>
  <p>&quot;pg_restore.exe&quot;  -d postgres://postgres:1234@127.0.0.1:9195/mydb -w
  -c -v -F c --if-exists &quot;DatabaseBackup_mydb.tar&quot; 2&gt;&gt; &quot;DatabaseRestore_mydb.log&quot;</p>
  </blockquote>
  <p>So I need to modify that command somehow that will handle also a use case in which the database &quot;mydb&quot; doesn't exist, and create it in such a case.</p>
  <p>just adding the -C flag won't work in that case.</p>
  <p>Any suggestion?</p>