doc: add note about granting permissions on pg_promote()

This commit is contained in:
Ian Barwick
2020-04-02 11:32:02 +09:00
parent 4acaca08c5
commit fd29a7ae28

View File

@@ -115,7 +115,12 @@
function must be granted with e.g.:
<programlisting>
GRANT EXECUTE ON FUNCTION pg_catalog.pg_promote TO repmgr</programlisting>
</para>
</para>
<para>
Note that permissions are only effective for the database they are granted in, so
this <emphasis>must</emphasis> be executed in the &repmgr; database to be effective.
</para>
<para>
A future &repmgr; release will relax this restriction by falling back to
<command>pg_ctl promote</command>, as used for pre-PostgreSQL 12 versions.