mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
standby promote: enable "service_promote_command" in PostgreSQL 12
This enables the promote command generated internally by repmgr to be overridden if desired, in the same way as for PostgreSQL 11 and earlier.
This commit is contained in:
@@ -2487,7 +2487,11 @@ _do_standby_promote_internal(PGconn *conn)
|
||||
{
|
||||
use_pg_promote = true;
|
||||
|
||||
if (can_execute_pg_promote(conn) == false)
|
||||
if (config_file_options.service_promote_command[0] != '\0')
|
||||
{
|
||||
use_pg_promote = false;
|
||||
}
|
||||
else if (can_execute_pg_promote(conn) == false)
|
||||
{
|
||||
use_pg_promote = false;
|
||||
log_info(_("user \"%s\" does not have permission to execute \"pg_promote()\", falling back to \"pg_ctl promote\""),
|
||||
|
||||
Reference in New Issue
Block a user