我想配置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
任何人都可以幫助我嗎?