Martín Marqués c9c380a022 Provide fix for failing pg_rewind with non-superuser
Issue #829 was opened indicating, with a reproducible, that repmgr
was not able to run `node rejoin` with minimal privileged user. The
main obstacle is that pg_rewind is not able to execute the rewind
operation if the user has REPLICATION privileges, but the user
repmgr uses requires REPLICATION. This is a typical catch22.

The solution provided here adds a --superuser, similar to what
other commands have, to `node rejoin`

AI-assisted development notes:

    The approach was designed and directed by Martín Marqués, who
    also reviewed and refined the output. Code was written by Claude
    (AI), with some additions from Martín in the documentation.

Fixes #829

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Martín Marqués <martin.marques@enterprisedb.com>
2026-03-28 17:01:48 +01:00
2024-09-09 16:30:50 +02:00
2020-01-16 09:52:42 +09:00
2020-01-16 09:52:42 +09:00
2023-02-27 12:23:57 -03:00
2023-02-27 12:23:57 -03:00
2021-09-16 10:15:20 +09:00
2024-11-15 10:51:12 -03:00
2017-09-11 10:21:20 +09:00
2024-11-18 09:46:14 -03:00
2023-02-27 12:23:57 -03:00
2024-11-22 11:34:48 -03:00
2017-09-08 13:27:39 +09:00
2023-02-27 12:23:57 -03:00
2024-11-15 10:51:12 -03:00
2017-09-11 11:00:48 +09:00
2025-01-21 10:47:05 +09:00
2024-11-15 10:51:12 -03:00
2020-01-16 09:52:42 +09:00
2020-01-16 09:52:42 +09:00
2020-01-16 09:52:42 +09:00
2024-11-15 10:51:12 -03:00
2024-11-15 10:51:12 -03:00
2022-05-17 20:00:12 +09:00
2024-10-14 14:46:27 +02:00
2024-11-21 14:42:50 +01:00
2024-11-18 09:46:14 -03:00
2022-05-11 14:58:36 +09:00

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.5.x) supports all PostgreSQL versions from 13 to 17. Despite it could be used with some older ones, some features might not be available, however, it's strongly recommended to use the latest version.

repmgr is distributed under the GNU GPL 3 and maintained by EnterpriseDB.

Documentation

The full repmgr documentation is available here:

repmgr documentation

Versions

For an overview of repmgr versions and PostgreSQL compatibility, see the repmgr compatibility matrix.

Files

  • CONTRIBUTING.md: details on how to contribute to repmgr
  • COPYRIGHT: Copyright information
  • HISTORY: Summary of changes in each repmgr release
  • LICENSE: GNU GPL3 details

Directories

  • contrib/: additional utilities
  • doc/: DocBook-based documentation files
  • expected/: expected regression test output
  • sql/: regression test input

Support and Assistance

EnterpriseDB 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:

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.

Thanks from the repmgr core team.

  • Israel Barth
  • Mario González
  • Martín Marqués
  • Gianni Ciolli

Past contributors:

  • Ian Barwick
  • Jaime Casanova
  • Abhijit Menon-Sen
  • Simon Riggs
  • Cedric Villemain

Further reading

repmgr v5.5.0 Latest
2024-11-22 14:34:48 +00:00
Languages
C 98.1%
Lex 1.3%
Makefile 0.4%
Perl 0.2%