We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d04a59 commit 898a792Copy full SHA for 898a792
src/backend/commands/subscriptioncmds.c
@@ -546,10 +546,14 @@ DropSubscription(DropSubscriptionStmt *stmt)
546
errdetail("The error was: %s", err)));
547
548
if (!walrcv_command(wrconn, cmd.data, &err))
549
+ {
550
+ /* Close the connection in case of failure */
551
+ walrcv_disconnect(wrconn);
552
ereport(ERROR,
553
(errmsg("could not drop the replication slot \"%s\" on publisher",
554
slotname),
555
556
+ }
557
else
558
ereport(NOTICE,
559
(errmsg("dropped replication slot \"%s\" on publisher",
0 commit comments