Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

how to change postgresql ip address for streaming replication

$
0
0

I have Postgres replication (master&slave).

The slave server has 2 local ip addressed (192.168.1.17 & 192.168.2.12) as far as I know the streaming replication worked fine with slave using ip 192.168.2.12. But somehow the slave could not connect to master because it required another ip:

2017-01-30 23:53:13.510 WIB >FATAL:  no pg_hba.conf entry for replication connection from host "192.168.1.17", user "user1", SSL off

I can put 192.168.1.17 in pg_hba.conf for work around this problem but I want to know if I did anything wrong to make the slave Postgres ip changed. because it was worked just fine.


Viewing all articles
Browse latest Browse all 17268

Trending Articles