Enable "node rejoin" to join a target with a lower timeline

This has been possible since PostgreSQL 9.6, but the node rejoin/follow
check did not consider this possibility.
This commit is contained in:
Ian Barwick
2020-10-08 11:28:10 +09:00
parent 0fc8c6c79c
commit 7969dc4800
4 changed files with 68 additions and 10 deletions

View File

@@ -392,6 +392,11 @@
the current standby's PostgreSQL log will contain entries with the text
&quot;<literal>record with incorrect prev-link</literal>&quot;.
</para>
<para>
In PostgreSQL 9.5 and earlier, it is <emphasis>not</emphasis> possible to use
<application>pg_rewind</application> to attach to a target node with a lower
timeline than the local node.
</para>
<para>
We strongly recommend running <command>repmgr node rejoin</command> with the
<option>--dry-run</option> option first. Additionally it might be a good idea