Is it mandatory parameter recover_target_timeline='latest' in switchover and switchback in PostgreSQL 9.4.1?
问题 I have followed below steps for switchover and switchback. Step 1:- Disconnect application services from 10.x.x.10 and do the following @Master(10.x.x.10) pg_ctl -D /DATA_VEC/pgdata stop --mode=fast @DR(20.x.x.20) promote DR as read write mode Step 2:- Start master as DR from new primary @Master(10.x.x.10) create recovery.conf standby_mode = 'on' primary_conninfo = 'user= password= host=20.x.x.20 port=9999 trigger_file = '/tmp/node1' restore_command = 'cp /DATA_VEC/restore/%f "%p"' pg_ctl -D