postgresql, 恢复错误, 复制失败 表 "pat" : 错误: 未实现pattern_in



dump commond:

   pg_dump -fc测试>/home/backup/test4.sql.gz

还原共享:

   bash -4.1 $ pg_restore -d test/home/backup/test4.sql.gz    pg_restore:[Archiver(db(]处理TOC时的错误:    pg_restore:[Archiver(db(] TOC条目2408的错误;0 666136表数据pat Potgres    pg_restore:[Archiver(db(]表" pat":错误:dattern_in未实现的副本失败    上下文:副本PAT,第1行PTN列:"((0.244171,0.008272,0.021515,-0.012174,0.068765,0.076409,0.016820,0.016820,0.021921,0.021921,0.114738,0.1238,0.12366 ...    pg_restore:[Archiver(db(] TOC条目2445的错误;0 4877471表数据pat_303816 Postgres    pg_restore:[Archiver(DB(]表" PAT_303816"的副本失败:错误:dattern_in未实现    上下文:副本PAT_303816,第1行PTN列:(((0.446228,-0.151998,-0.054444,-0.095391,0.027121,0.028324    pg_restore:[Archiver(db(] TOC条目2441的错误;0 4800536表数据pat_402653 Postgres    pg_restore:[Archiver(DB(]表" PAT_402653"的副本失败:错误:dattern_in未实现    上下文:复制PAT_402653,第1行PTN列:((0.505515,0.040819,0.057495,0.044649,0.044649,0.065036,0.021012,0.006341,0.006341,0.045162,0.045162,0.061616,0.061616,0.0855675 ...    pg_restore:[Archiver(db(] TOC条目2449的错误;0 4878143表数据pat_452238 Postgres    pg_restore:[Archiver(db(]表" PAT_452238"的副本失败:错误:未实现dattern_in    上下文:复制PAT_452238,第1行PTN列:((0.124739,-0.015536,0.045421,0.013990,0.000782,0.013343,0.013343,0.018824,0.018824,0.002218,0.002218,0.002218,0.00999441,0.0941,0.0011699 ...    警告:在还原时忽略了错误:4

如果我没记错的话,您的观点之一是引用称为 pattern_in的函数。

您缺少数据库中的扩展名。您需要在之后运行CREATE EXTENSION foo >创建数据库,但是在之前从备份还原数据库之前。其中 foo是提供pattern_in函数的扩展名的名称;我认为可能是这个。

相关内容

  • 没有找到相关文章

最新更新