interim commit

This commit is contained in:
Ian Barwick
2017-06-28 17:28:20 +09:00
parent ded8d95e5a
commit f4e8bf891d
4 changed files with 65 additions and 16 deletions

View File

@@ -34,11 +34,15 @@ CREATE VIEW show_nodes AS
LEFT JOIN nodes un
ON un.node_id = n.upstream_node_id;
CREATE FUNCTION request_vote(int) RETURNS boolean
AS '$libdir/repmgr', 'request_vote'
LANGUAGE C STRICT;
/* repmgrd functions */
CREATE FUNCTION request_vote(INT, pg_lsn)
RETURNS INT
AS '$libdir/repmgr', 'request_vote'
LANGUAGE C STRICT;
CREATE FUNCTION get_voting_status() RETURNS int
AS '$libdir/repmgr', 'get_voting_status'
LANGUAGE C STRICT;
CREATE FUNCTION get_voting_status()
RETURNS INT
AS '$libdir/repmgr', 'get_voting_status'
LANGUAGE C STRICT;