PostgreSQL 9.4 pg_restore无效

时间:2016-06-21 04:52:42

标签: sql postgresql postgresql-9.4

最近我正在尝试恢复本地数据库或生产数据库中的表,无论我做什么,似乎pg_restore无法连接到本地或远程数据库。

它只是退出code 0或只是退出而没有任何错误或结果代码。

未插入数据或更新了表格架构

示例命令:

pg_restore.exe --host localhost --port 5432 --username "postgres" --dbname "homemarket" --no-password  --data-only --table test_table --schema public --verbose "D:\folder\backup\21.06.2016.backup"

尝试使用选项--password,尝试指定连接字符串,尝试不同的数据库,不同的表和方案,不同的选项。什么都没有帮助。完全无法理解为什么它不起作用:(

仅执行和退出没有错误或任何结果代码的示例字符串。

ADD 备份文件创建日志:

C:/Program Files/PostgreSQL/9.4/bin\pg_dump.exe --host localhost --port 5432 --username "postgres" --no-password  --format custom --verbose --file "D:\folder\backup\21.06.2016.backup" --table "public.condos" "homemarket"
pg_dump: reading schemas
pg_dump: reading user-defined tables
pg_dump: reading extensions
pg_dump: reading user-defined functions
pg_dump: reading user-defined types
pg_dump: reading procedural languages
pg_dump: reading user-defined aggregate functions
pg_dump: reading user-defined operators
pg_dump: reading user-defined operator classes
pg_dump: reading user-defined operator families
pg_dump: reading user-defined text search parsers
pg_dump: reading user-defined text search templates
pg_dump: reading user-defined text search dictionaries
pg_dump: reading user-defined text search configurations
pg_dump: reading user-defined foreign-data wrappers
pg_dump: reading user-defined foreign servers
pg_dump: reading default privileges
pg_dump: reading user-defined collations
pg_dump: reading user-defined conversions
pg_dump: reading type casts
pg_dump: reading table inheritance information
pg_dump: reading event triggers
pg_dump: finding extension members
pg_dump: finding inheritance relationships
pg_dump: reading column info for interesting tables
pg_dump: finding the columns and types of table "condos"
pg_dump: finding default expressions of table "condos"
pg_dump: flagging inherited columns in subtables
pg_dump: reading indexes
pg_dump: reading indexes for table "condos"
pg_dump: reading constraints
pg_dump: reading foreign key constraints for table "condos"
pg_dump: reading triggers
pg_dump: reading triggers for table "condos"
pg_dump: reading rewrite rules
pg_dump: reading dependency data
pg_dump: saving encoding = UTF8
pg_dump: saving standard_conforming_strings = on
pg_dump: dumping contents of table condos

Process returned exit code 0.

0 个答案:

没有答案