Add sanity checks to be sure pg_rewind can be used before executing a switchover

This commit is contained in:
Ian Barwick
2016-01-28 07:50:39 +09:00
committed by Ian Barwick
parent 16c1e13019
commit ca6cbcf965
3 changed files with 85 additions and 5 deletions

View File

@@ -129,6 +129,7 @@ bool update_node_record_status(PGconn *conn, char *cluster_name, int this
bool update_node_record_set_upstream(PGconn *conn, char *cluster_name, int this_node_id, int new_upstream_node_id);
bool create_event_record(PGconn *conn, t_configuration_options *options, int node_id, char *event, bool successful, char *details);
int get_node_replication_state(PGconn *conn, char *node_name, char *output);
int get_node_replication_state(PGconn *conn, char *node_name, char *output);
t_server_type parse_node_type(const char *type);
int get_data_checksum_version(const char *data_directory);
#endif