文档首页> 数据复制服务 DRS> 故障排除> 失败案例> PostgreSQL->PostgreSQL实时同步> 全量同步失败报错,关键词“type 'hstore' does not exist”
更新时间:2022-12-27 GMT+08:00
分享

全量同步失败报错,关键词“type 'hstore' does not exist”

场景描述

全量同步期间DRS任务报错,同步日志界面提示:service DATAMOVE failed, cause by: retry structures failed events=the fail structures are [type=operator, index=2, schema_name=public, object_name=?|]reason:[ERROR: type 'hstore' does not exist]

可能原因

目标库没有安装hstore插件。

可在目标库RDS for PostgreSQL的相应库(database)中,执行如下SQL进行验证:

select * from pg_extension where extname = 'hstore';

解决方案

插件对象不同步,同步前请先在目标库安装相应的插件。请按照如下步骤,安装插件后,再重试DRS任务。

  1. 使用root用户登录目标库RDS for PostgreSQL的相应库(database)。
  2. 执行如下SQL,安装hstore插件。

    create extension "hstore";

  3. 重试DRS任务。
分享:

    相关文档

    相关产品