2
0

Add the drop replication slot functionality

This commit is contained in:
Kris Wehner
2017-01-09 14:19:08 -08:00
parent c88c110169
commit af01afca00
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -362,7 +362,7 @@ func (rc *ReplicationConn) CreateReplicationSlot(slotName, outputPlugin string)
}
// Drop the replication slot for the given name
func (rc *ReplicationConn) DropReplicationSlot(slotName, outputPlugin string) (err error) {
func (rc *ReplicationConn) DropReplicationSlot(slotName string) (err error) {
_, err = rc.c.Exec(fmt.Sprintf("DROP_REPLICATION_SLOT %s", slotName))
return
}