Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 .backup 文件,我需要将它恢复到我的 postgres 数据库。但是当我在我的数据库中选择恢复并选择我的文件时,我得到了所有带有一些空表的表。我不知道我是否选择了正确的选项,但这就是我所做的:我选择了我的备份文件;
然后我从“Option1”和“Options2”中选择这个选项:
有一个简单的方法可以做到这一点。在命令提示符中键入以下命令以还原表:
C:\Program Files\PostgreSQL\10\bin>pg_restore.exe -U user -p port -h host -w -Fc -d database-name < backup-file.backup