pg_restore 找不到输入文件 "X" 没有那个目录或文件

pg_restore cant find the input file "X" no such directory or file

首先我对 pgadmin 和 postgresql 比较陌生

所以我用 pgadmin 做了一个纯文本备份,它将我需要的数据从一个 table 转储到一个名为 lodging 的文件中。它来自我们实时服务器的 plans_to_lodge table。现在要测试一个新的 Web 应用程序前端,我想 pg_restore 但这就是我得到的

> pg_restore -h localhost  -d TestingDatabase2 -t lodging_of_plans -n plan_authentication "C:\lodging"
pg_restore: [archiver] could not open input file "C:\lodging": No such file or directory

文档没有给出 table 恢复的示例 是的,该文件位于 C 盘中的那个位置

问题是它是根文件夹,所以当我将名为 lodging 的文件放入另一个文件夹时

C:\folder\lodging

它现在可以解决更多错误