standby promote: in --dry-run mode, display promote command which will be used

For PostgreSQL 12 and later, explicitly note whether repmgr user has
execution permissions on the pg_promote() function.
This commit is contained in:
Ian Barwick
2020-04-02 12:37:32 +09:00
parent d998cab3d0
commit 447054a630
4 changed files with 46 additions and 2 deletions

View File

@@ -49,6 +49,14 @@
<title>General improvements</title>
<para>
<itemizedlist>
<listitem>
<para>
<link linkend="repmgr-standby-promote"><command>repmgr standby promote</command></link>:
when executed with <option>--dry-run</option>, the method which would be used to promote the node
will be displayed.
</para>
</listitem>
<listitem>
<para>
<link linkend="repmgr-standby-follow"><command>repmgr standby follow</command></link>:
@@ -67,7 +75,7 @@
<listitem>
<para>
<link linkend="repmgr-node-check"><command>repmgr node check</command></link>:
accept option <option>-S</option>/<option>--superuser</option> GitHub #621.
accept option <option>-S</option>/<option>--superuser</option>. GitHub #621.
</para>
</listitem>
</itemizedlist>

View File

@@ -115,6 +115,10 @@
<function>pg_promote()</function>, &repmgr; will fall back to using &quot;<command>pg_ctl promote</command>&quot;.
</para>
<tip>
<para>
Execute <command>repmgr standby promote</command> with the <option>--dry-run</option>
to check whether the &repmgr; user has permission to execute <function>pg_promote()</function>.
</para>
<para>
If the <literal>repmgr</literal> user is not a superuser, execution permission for this
function can be granted with e.g.: