"standby follow": check for replication slot availability on target node

This commit is contained in:
Ian Barwick
2018-02-02 15:01:23 +09:00
parent 94e187c476
commit 50894b6124
3 changed files with 69 additions and 1 deletions

View File

@@ -445,6 +445,7 @@ void create_slot_name(char *slot_name, int node_id);
bool create_replication_slot(PGconn *conn, char *slot_name, int server_version_num, PQExpBufferData *error_msg);
bool drop_replication_slot(PGconn *conn, char *slot_name);
RecordStatus get_slot_record(PGconn *conn, char *slot_name, t_replication_slot *record);
int get_free_replication_slots(PGconn *conn);
/* tablespace functions */
bool get_tablespace_name_by_location(PGconn *conn, const char *location, char *name);