repmgrd: always unset upstream node ID when monitoring a primary

This commit is contained in:
Ian Barwick
2019-04-12 12:26:39 +09:00
parent 1a344d488a
commit 27803f93ff
6 changed files with 74 additions and 1 deletions

View File

@@ -12,3 +12,8 @@ CREATE FUNCTION get_upstream_node_id()
RETURNS INT
AS 'MODULE_PATHNAME', 'get_upstream_node_id'
LANGUAGE C STRICT;
CREATE FUNCTION set_upstream_node_id(INT)
RETURNS VOID
AS 'MODULE_PATHNAME', 'set_upstream_node_id'
LANGUAGE C STRICT;