"standby promote": don't promote if replay paused and in archive recovery

It does not appear feasible to predict if there is still WAL waiting to
be replayed from archive. In this case take no action.

GitHub #540.
This commit is contained in:
Ian Barwick
2019-02-05 14:37:26 +09:00
parent f62b3b2868
commit 2a529e7e8b
2 changed files with 49 additions and 13 deletions

View File

@@ -44,6 +44,10 @@
attempting to promote PostgreSQL in this state will leave PostgreSQL in a condition where the
promotion may occur at a unpredictable point in the future.
</para>
<para>
Note that if the standby is in archive recovery, &repmgr; will not be able to determine
if more WAL is pending replay, and will abort the promotion attempt if WAL replay is paused.
</para>
</note>
</refsect1>