diff --git a/doc/repmgr-node-rejoin.sgml b/doc/repmgr-node-rejoin.sgml index 37687f6b..cd7e1e24 100644 --- a/doc/repmgr-node-rejoin.sgml +++ b/doc/repmgr-node-rejoin.sgml @@ -13,14 +13,25 @@ - This can optionally use pg_rewind to re-integrate a node which has diverged + This can optionally use pg_rewind to re-integrate a node which has diverged from the rest of the cluster, typically a failed primary. The node must have been shut down cleanly; if this was not the case, it will - need to be manually started (remove any existing recovery.conf file) until - it has reached a consistent recovery point, then shut down cleanly. + need to be manually started (remove any existing recovery.conf file first) + until it has reached a consistent recovery point, then shut down cleanly. + + + If PostgreSQL is started in single-user mode and + input is directed from /dev/null/, it will perform recovery + then immediately quit, and will then be in a state suitable for use by + pg_rewind. + + rm -f /var/lib/pgsql/data/recovery.conf + postgres --single -D /var/lib/pgsql/data/ < /dev/null + + Usage: