diff --git a/doc/repmgr-standby-promote.xml b/doc/repmgr-standby-promote.xml index ceebd356..c0de020b 100644 --- a/doc/repmgr-standby-promote.xml +++ b/doc/repmgr-standby-promote.xml @@ -104,15 +104,15 @@ User permission requirements - pg_promote() (PostgreSQL 12) + pg_promote() (PostgreSQL 12 and later) - From PostgreSQL 12, &repmgr; will attempt to use the pg_promote() function - to promote a standby to primary. + From PostgreSQL 12, &repmgr; will attempt to use the built-in pg_promote() + function to promote a standby to primary. By default, execution of pg_promote() is restricted to superusers. If the repmgr user does not have permission to execute - pg_promote(), &repmgr; will fall back to using pg_ctl promote. + pg_promote(), &repmgr; will fall back to using "pg_ctl promote". @@ -122,6 +122,10 @@ GRANT EXECUTE ON FUNCTION pg_catalog.pg_promote TO repmgr + + For more details on pg_promote(), see the + PostgreSQL documentation. + diff --git a/doc/repmgr-standby-switchover.xml b/doc/repmgr-standby-switchover.xml index ef56e25e..9e51adcb 100644 --- a/doc/repmgr-standby-switchover.xml +++ b/doc/repmgr-standby-switchover.xml @@ -74,21 +74,17 @@ If the repmgr user is not a superuser, the checkpoint operation will fail, though this is not a fatal error &repmgr; will continue the switchover process. - pg_promote() (PostgreSQL 12) + pg_promote() (PostgreSQL 12 and later) - From PostgreSQL 12, &repmgr; uses the pg_promote() function to promote a standby - to primary. + From PostgreSQL 12, &repmgr; defaults to using the built-in pg_promote() function to + promote a standby to primary. - By default, execution of pg_promote() is restricted to superusers. - If the repmgr use is not a superuser, execution permission for this - function must be granted with e.g.: - - GRANT EXECUTE ON FUNCTION pg_catalog.pg_promote TO repmgr - - - A future &repmgr; release will relax this restriction by falling back to - pg_ctl promote, as used for pre-PostgreSQL 12 versions. + Note that execution of pg_promote() is restricted to superusers or to + any user who has been granted execution permission for this function. If the &repmgr; user + is not permitted to execute pg_promote(), &repmgr; will fall back to using + "pg_ctl promote". For more details see + repmgr standby promote.