repmgr is developed and tested on Linux and OS X, but should work on any UNIX-like system supported by PostgreSQL itself. There is no support for Microsoft Windows.
repmgr 4.x is compatible with all PostgreSQL versions from 9.3. See section repmgr compatibility matrix for an overview of version compatibility.
Note: If upgrading from repmgr 3.x, please see the section Upgrading from repmgr 3.x.
All servers in the replication cluster must be running the same major version of PostgreSQL, and we recommend that they also run the same minor version.
repmgr must be installed on each server in the replication cluster. If installing repmgr from packages, the package version must match the PostgreSQL version. If installing from source, repmgr must be compiled against the same major version.
A dedicated system user for repmgr is not required; as many repmgr and repmgrd actions require direct access to the PostgreSQL data directory, these commands should be executed by the postgres user.
See also Prerequisites for configuration for information on networking requirements.
Tip: We recommend using a session multiplexer utility such as screen or tmux when performing long-running actions (such as cloning a database) on a remote server - this will ensure the repmgr action won't be prematurely terminated if your ssh session to the server is interrupted or closed.
The following table provides an overview of which repmgr version supports which PostgreSQL version.
Table 2-1. repmgr compatibility matrix
|repmgr version||Latest release||Supported PostgreSQL versions|
|repmgr 4.x||4.2 (2018-10-24)||9.3, 9.4, 9.5, 9.6, 10, 11|
|repmgr 3.x||3.3.2 (2017-05-30)||9.3, 9.4, 9.5, 9.6|
|repmgr 2.x||2.0.3 (2015-04-16)||9.0, 9.1, 9.2, 9.3, 9.4|
Important: The repmgr 2.x and 3.x series are no longer maintained or supported. We strongly recommend upgrading to the latest repmgr version.
Note that some repmgr functionality is not available in PostgreSQL 9.3 and PostgreSQL 9.4.
PostgreSQL 9.3 does not support replication slots, so corresponding repmgr functionality is not available.
In PostgreSQL 9.3 and PostgreSQL 9.4, pg_rewind is not part of the core distribution. pg_rewind will need to be compiled separately to be able to use any repmgr functionality which takes advantage of it.