我是psql的新手.我从我的服务器data.dump文件中获取.我需要在当地恢复它.我试过这些命令.
i)psql -U postgres dbname -f servicedb.dump
Error:
psql: warning: extra command-line argument "-f" ignored
psql: warning: extra command-line argument "servicedb.dump" ignored
Run Code Online (Sandbox Code Playgroud)
ii)psql -U postgres dbname <servicedb.dump
Error:
^
ERROR: syntaxe error at or near "?"
LINE 1: ??
Run Code Online (Sandbox Code Playgroud)
什么是".dump"文件以及如何恢复它?