Improve logging output during failover process

This commit is contained in:
Ian Barwick
2017-08-24 22:44:03 +09:00
parent 7a00ad930a
commit fcd111ac4c
7 changed files with 80 additions and 17 deletions

View File

@@ -56,6 +56,11 @@ LEFT JOIN repmgr.nodes un
/* monitoring functions */
CREATE FUNCTION set_local_node_id(INT)
RETURNS VOID
AS '$libdir/repmgr', 'set_local_node_id'
LANGUAGE C STRICT;
CREATE FUNCTION standby_set_last_updated()
RETURNS TIMESTAMP WITH TIME ZONE
AS '$libdir/repmgr', 'standby_set_last_updated'
@@ -66,7 +71,6 @@ CREATE FUNCTION standby_get_last_updated()
AS '$libdir/repmgr', 'standby_get_last_updated'
LANGUAGE C STRICT;
/* failover functions */
CREATE FUNCTION request_vote(INT,INT)