mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-28 17:36:30 +00:00
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>
This commit is contained in:
@@ -192,6 +192,9 @@
|
||||
<listitem>
|
||||
<simpara><link linkend="repmgr-node-service">repmgr node service</link> (to execute <command>CHECKPOINT</command> via the <option>--checkpoint</option>; note this is also called by <link linkend="repmgr-standby-switchover">repmgr standby switchover</link>)</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara><link linkend="repmgr-node-rejoin">repmgr node rejoin</link> (to execute <command>repmgr node rejoin --force-rewind</command>)</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</sect3>
|
||||
|
||||
Reference in New Issue
Block a user