Is it mandatory parameter recover_target_timeline='latest' in switchover and switchback in PostgreSQL 9.4.1?

后端 未结 1 1249
名媛妹妹
名媛妹妹 2021-01-28 11:13

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

相关标签:
1条回答
  • 2021-01-28 12:17

    If you want switch-back functionality, you will have to set recovery_target_timeline='latest', as any promotion will increment the timeline. Using a fixed target timeline is usually reserved for very specific cases (i.e., you need to recover changes after a split-brain, diverged-timeline scenario).

    To answer your specific questions:

    1. Yes
    2. Yes
    0 讨论(0)
提交回复
热议问题