bucardo同步问题,功能不存在

时间:2019-04-02 07:07:03

标签: postgresql psql rds bucardo

我在添加数据库以进行同步时遇到问题。数据库版本:PostgreSQL 9.6.8(RDS),跳转系统:Ubuntu18.04 LTS,布卡多版本:5.4.1。

尝试运行此命令时:

bucardo add sync db_sync relgroup=copying_herd dbs=source_db:source,dest_db:target onetimecopy=1

我收到此错误:

WARNING:  Issuing rollback() due to DESTROY without explicit disconnect() of DBD::Pg::db handle dbname=dc_sourcedb;host=xxx.aaa.xyz;port=5432 at line 126.
Failed to add sync: DBD::Pg::st execute failed: ERROR:  DBD::Pg::db do failed: ERROR:  function search_string(text) does not exist
LINE 5:             array_agg(search_string(x)),
                              ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
QUERY:
  SELECT
    coalesce(
        array_to_string(
            array_agg(search_string(x)),
            '|'
        )::text,
        ''
    )
  FROM unnest($1) x

CONTEXT:  SQL function "flatten_text_array" during inlining at line 126. at line 30.
CONTEXT:  PL/Perl function "validate_sync" at /usr/bin/bucardo line 4612.

功能search_string存在,我可以从psql命令行运行此功能

0 个答案:

没有答案