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

全量同步失败报错,关键词“column *** of relation *** does not exist”

场景描述

全量同步期间DRS任务报错,同步日志界面提示:service DATAMOVE failed, cause by: apply event=[type=table_data, batch_index_in_shard=%s, table_schema=%s, table_name=%s, record_num=%s] occur error, msg=apply table %s data failed: %s: ERROR: column '%s' of relation '%s' does not exist Position: 1043 Call getNextException to see other errors in the batch.

可能原因

  • 全量期间目标库执行了DDL,导致目标库和源库表结构不一致。
  • 全量期间源库执行了DDL,导致目标库和源库表结构不一致。

可联系客户确认是否执行DDL。

解决方案

重新创建DRS同步任务进行同步,并确保全量同步期间,源库不执行DDL,且目标库无写入,否则可能导致数据不一致或同步失败。

分享:

    相关文档

    相关产品