I am using Postgres 9.4 on Windows 2008 server. There are three such instances that I am using. One as master and the rest of the two are slave/standby. The version of Postgres is 9.4 in all the three instances. I have set up replication using physical slot. But the replication is not working. On querying SELECT * from pg_stat_replication
; 0 rows are returned and on SELECT * from pg_replication_slots
; the slot shows it is not active ('f' in the 'active' column).
I have the following configuration :
On Primary/Master:
- wal_level = hot_standby
- max_wal_senders = 2
- max_replication_slots = 2
- hot_standby = on
On Secondary/Standby:
- wal_level = hot_standby
- hot_standby = on
recovery.conf file on secondary/standby:
- standby_mode = on
- primary_conninfo = 'host=192.168.8.192 port=5432 user=postgres password=123456'
- primary_slot_name = 'testing'
- recovery_min_apply_delay = 1min
What could be missing? I have bootstrapped Standby servers with Master's data backup. Thanks.