无法使用pgAdmin3备份恢复表

时间:2017-12-07 10:09:22

标签: postgresql backup restore pgadmin

尝试从备份文件恢复表时,我得到响应代码0,但我的表是空的。

pgAdmin中的默认备份选项以语句

结束
C:\main\PostgreSQL\9.5\pg95\bin\pg_dump.exe --host mylocalnetwork --port 5432 --username "efabis_admin" --no-password  --format custom --verbose --file "C:\Users\shelikhovskyy\Documents\test\efabis Cryo\backup\breeds_lang.backup" --table "efabis_admin.breeds_lang" "DAD_IS"

pg_dump: last built-in OID is 16383
pg_dump: reading extensions
pg_dump: identifying extension members
pg_dump: reading schemas
pg_dump: reading user-defined tables
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 transforms
pg_dump: reading table inheritance information
pg_dump: reading event triggers
pg_dump: finding extension tables
pg_dump: finding inheritance relationships
pg_dump: reading column info for interesting tables
pg_dump: finding the columns and types of table "efabis_admin.breeds_lang"
pg_dump: flagging inherited columns in subtables
pg_dump: reading indexes
pg_dump: reading indexes for table "efabis_admin.breeds_lang"
pg_dump: reading constraints
pg_dump: reading triggers
pg_dump: reading rewrite rules
pg_dump: reading policies
pg_dump: reading dependency data
pg_dump: saving encoding = UTF8
pg_dump: saving standard_conforming_strings = off
pg_dump: dumping contents of table "efabis_admin.breeds_lang"

Process returned exit code 0.

好的,此时我有3MB文件

首先,我在本地创建我的“breeds_lang”表,从“SQL窗格”中的SQL代码创建较低的pgAdmin面板,仅将所有者更改为本地的“postgres”默认值

当我尝试右键单击本地表并转到默认还原选项时,我最终会使用

C:\main\PostgreSQL\9.5\pg95\bin\pg_restore.exe --host localhost --port 5432 --username "postgres" --dbname "DAD_IS" --no-password  --data-only --table breeds_lang --schema postgres --verbose "C:\Users\shelikhovskyy\Documents\test\efabis Cryo\backup\breeds_lang.backup"

pg_restore: connecting to database for restore

Process returned exit code 0.

但是我的本地表仍然是空的

0 个答案:

没有答案