mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 15:16:29 +00:00
This is intended to ensure that all nodes have a constant LSN while making the failover decision. This feature is experimental and needs to be explicitly enabled with the configuration file option "standby_disconnect_on_failover". Note enabling this option will result in a delay in the failover decision until the WAL receiver is disconnected on all nodes.
18 lines
511 B
SQL
18 lines
511 B
SQL
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
\echo Use "CREATE EXTENSION repmgr" to load this file. \quit
|
|
|
|
CREATE FUNCTION set_upstream_last_seen()
|
|
RETURNS VOID
|
|
AS 'MODULE_PATHNAME', 'set_upstream_last_seen'
|
|
LANGUAGE C STRICT;
|
|
|
|
CREATE FUNCTION get_upstream_last_seen()
|
|
RETURNS INT
|
|
AS 'MODULE_PATHNAME', 'get_upstream_last_seen'
|
|
LANGUAGE C STRICT;
|
|
|
|
CREATE FUNCTION get_wal_receiver_pid()
|
|
RETURNS INT
|
|
AS 'MODULE_PATHNAME', 'get_wal_receiver_pid'
|
|
LANGUAGE C STRICT;
|