-f
adalah keluaran nama file, bukan file input.
File input tidak memiliki sakelar parameter apa pun.
c:\>pg_restore --help
pg_restore restores a PostgreSQL database from an archive created by pg_dump.
Usage:
pg_restore [OPTION]... [FILE]
General options:
-d, --dbname=NAME connect to database name
-f, --file=FILENAME output file name
-F, --format=c|d|t backup file format (should be automatic)
-l, --list print summarized TOC of the archive
-v, --verbose verbose mode
-V, --version output version information, then exit
-?, --help show this help, then exit
Jadi, Anda perlu menggunakan:
pg_restore.exe -h localhost -U postgres -d Mydata "Mydata.backup"
Detail lebih lanjut dalam manual:http://www.postgresql.org /docs/current/static/app-pgrestore.html