In PostgreSQL 12 and later we need to append replication configuration to "postgresql.auto.conf" to guarantee it will be read last, and hence override any preceding replication configuration which may be haunting the configuration files. We've been assuming that "postgresql.auto.conf" will always be present, but at least one corner case has been observed where that was not the case on the node being cloned from. Moreover it's perfectly acceptable that this file does not exist (it will be recreated the next time ALTER SYSTEM is executed), so we should be prepared to handle that case. In passing, improve handling of more unlikely errors which might be encountered when processing "postgresql.auto.conf".
repmgr: Replication Manager for PostgreSQL
repmgr is a suite of open-source tools to manage replication and failover
within a cluster of PostgreSQL servers. It enhances PostgreSQL's built-in
replication capabilities with utilities to set up standby servers, monitor
replication, and perform administrative tasks such as failover or switchover
operations.
The most recent repmgr version (5.2.0) supports all PostgreSQL versions from
9.5 to 13. PostgreSQL 9.4 is also supported, with some restrictions.
repmgr is distributed under the GNU GPL 3 and maintained by 2ndQuadrant.
Documentation
The full repmgr documentation is available here:
The old README file for repmgr 3.x is available here:
https://github.com/2ndQuadrant/repmgr/blob/REL3_3_STABLE/README.md
Note that the repmgr 3.x series is no longer supported and contains known bugs;
please upgrade to the current repmgr version
as soon as possible.
Versions
For an overview of repmgr versions and PostgreSQL compatibility, see the
repmgr compatibility matrix.
Files
CONTRIBUTING.md: details on how to contribute torepmgrCOPYRIGHT: Copyright informationHISTORY: Summary of changes in eachrepmgrreleaseLICENSE: GNU GPL3 details
Directories
contrib/: additional utilitiesdoc/: DocBook-based documentation filesexpected/: expected regression test outputscripts/: example scriptssql/: regression test input
Support and Assistance
2ndQuadrant provides 24x7 production support for repmgr, including
configuration assistance, installation verification and training for
running a robust replication cluster. For further details see:
There is a mailing list/forum to discuss contributions or issues:
The IRC channel #repmgr is registered with freenode.
Please report bugs and other issues to:
Further information is available at https://repmgr.org/
We'd love to hear from you about how you use repmgr. Case studies and news are always welcome. Send us an email at info@2ndQuadrant.com, or send a postcard to
repmgr
c/o 2ndQuadrant
7200 The Quorum
Oxford Business Park North
Oxford
OX4 2JZ
United Kingdom
Thanks from the repmgr core team.
- Ian Barwick
- Jaime Casanova
- Abhijit Menon-Sen
- Simon Riggs
- Cedric Villemain