Postgresql 9.4 和 BDR SELECT bdr.bdr_group_join 错误

Postgresql 9.4 and BDR SELECT bdr.bdr_group_join ERROR

我正在尝试使用 BDR 配置 Postgresql 9.4,我有两台服务器,主服务器的地址为 169.254.9.90,从服务器的地址为 169.254.12.48。我已经配置了主服务器,但是当我尝试将从服务器加入复制时,出现错误:

加入命令:

SELECT bdr.bdr_group_join(
    local_node_name := 'node2',
    node_external_dsn := 'host=169.254.12.48 port=5432 user=postgres dbname=amstest password=postgres',
    join_using_dsn := 'host=169.254.9.90 port=5432 user=postgres dbname=amstest password=postgres'
);

我得到的错误是:

ERROR: connection from remote back to local in replication mode failed DETAIL: remote reported: ERROR: establish BDR: FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres", SSL on FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres", SSL off

DETAIL: Connection string is 'replication=database fallback_application_name='BDR test connection' connect_timeout=30 keepalives=1 keepalives_idle=20 keepalives_interval=20 keepalives_count=5 host=169.254.12.48 port=5432 user=postgres dbname=amstest password=postgres'

CONTEXT: SQL statement "SELECT *
FROM bdr.bdr_test_remote_connectback(join_using_dsn, node_external_dsn)" PL/pgSQL function bdr_group_join(text,text,text,text,integer,text[]) line 39 at SQL statement

有人能帮帮我吗?

FATAL: no pg_hba.conf entry for replication connection from host "169.254.9.90", user "postgres"

每个节点都必须能够连接到其他节点,包括复制连接和非复制连接。

新加入的节点没有 pg_hba.conf 允许您指定为加入目标的现有节点连接到它。