Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

why pg_restore ignores –create ? Error: failed: FATAL: database “new_db” does not exist

$
0
0

I am trying to run following command:

sshpass  -p "pass" ssh  x@1.2.3.4 "pg_dump -Fc -U foo some_db" | pg_restore --create --dbname=new_db

I get:

failed: FATAL:  database "new_db" does not exist

Viewing all articles
Browse latest Browse all 1138

Trending Articles