"standby clone": improve replication slots handling

Ensure replication slot is created on the upstream node and deleted from
the source node, if upstream node and source nodes differ.
This commit is contained in:
Ian Barwick
2017-09-06 12:16:02 +09:00
parent bd07a34472
commit a28bbd68eb
2 changed files with 145 additions and 37 deletions

View File

@@ -3184,6 +3184,8 @@ drop_replication_slot(PGconn *conn, char *slot_name)
log_verbose(LOG_DEBUG, "replication slot \"%s\" successfully dropped",
slot_name);
PQclear(res);
return true;
}