repmgrd: add %p event notification parameter for "repmgrd_failover_promote"

This enables an event notification script to identify the former primary
node.
This commit is contained in:
Ian Barwick
2021-09-28 10:24:13 +09:00
parent 3870768d80
commit e7e62f7f35
4 changed files with 37 additions and 15 deletions

View File

@@ -4242,7 +4242,7 @@ _create_event(PGconn *conn, t_configuration_options *options, int node_id, char
}
break;
case 'p':
/* %p: primary id ("standby_switchover": former primary id) */
/* %p: primary id ("standby_switchover"/"repmgrd_failover_promote": former primary id) */
src_ptr++;
if (event_info->node_id != UNKNOWN_NODE_ID)
{