postgresql恢复备份的时候报错:pg_restore: implied data-only restore的处理方案

问题分析和解决方案
仔细观察这个备份命令,发现是-d 数据库名称 -t 模式名称.该模式下的表名 -t 模式名称.该模式下的表名 -t 模式名称.该模式下的表名

OK,将模式名称去掉,发现可以正常的恢复了

postgres@node1 ~]$ pg_restore -Upostgres -v -x -a -d pgbench -t dr_route_ds -t dr_task_active_ds 2023-08-02T04_00-ds.dump
pg_restore: connecting to database for restore
pg_restore: processing data for table "dr.dr_route_ds"
pg_restore: processing data for table "dr.dr_task_active_ds"
pg_restore: processing data for table "ds.dr_route_ds"
pg_restore: processing data for table "ds.dr_task_active_ds"

posted @ 2026-02-28 10:20  DBA日记  阅读(13)  评论(0)    收藏  举报