2017-07-25 56 views
0

我想配置PostgreSQL 9.4與BDR,我有兩個服務器,其中主人的地址169.254.9.90和奴隸的地址169.254.12.48。我已經可配置的高手,但是當我嘗試加入的奴隸,我得到一個錯誤的複製:Postgresql 9.4和BDR SELECT bdr.bdr_group_join錯誤

命令加入:

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

任何人都可以幫助我嗎?

回答

0

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

每個節點必須能夠連接到每個其他節點,用於複製和非複製連接。

新加入的節點沒有pg_hba.conf,允許您指定的現有節點作爲連接目標連接到它。