repmgr standby switchover: add "%p" event notification parameter

This will contain the node ID of the former primary.
This commit is contained in:
Ian Barwick
2018-01-10 10:58:01 +09:00
parent 5a45997db5
commit 5bd8cf958a
6 changed files with 60 additions and 22 deletions

View File

@@ -174,11 +174,13 @@ typedef struct s_event_info
{
char *node_name;
char *conninfo_str;
int former_primary_id;
} t_event_info;
#define T_EVENT_INFO_INITIALIZER { \
NULL, \
NULL \
NULL, \
UNKNOWN_NODE_ID \
}