Files
repmgr/sql/repmgr_extension.sql
Ian Barwick 4d4ed3bcd6 Remove BDR 2.x support
The BDR 2.x support was conceptual only and was never used in
production. As BDR 2.x will be EOL'd shortly, there is no risk it will
be needed.
2020-01-16 09:52:42 +09:00

28 lines
714 B
SQL

-- minimal SQL tests
--
-- comprehensive tests will require a working replication cluster
-- set up using the "repmgr" binary and with "repmgrd" running
-- extension
CREATE EXTENSION repmgr;
-- tables
SELECT * FROM repmgr.nodes;
SELECT * FROM repmgr.events;
SELECT * FROM repmgr.monitoring_history;
-- views
SELECT * FROM repmgr.replication_status;
SELECT * FROM repmgr.show_nodes;
-- functions
SELECT repmgr.get_new_primary();
SELECT repmgr.notify_follow_primary(-1);
SELECT repmgr.notify_follow_primary(NULL);
SELECT repmgr.reset_voting_status();
SELECT repmgr.set_local_node_id(-1);
SELECT repmgr.set_local_node_id(NULL);
SELECT repmgr.standby_get_last_updated();
SELECT repmgr.standby_set_last_updated();