summaryrefslogtreecommitdiff
path: root/src/backend/commands/subscriptioncmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/subscriptioncmds.c')
-rw-r--r--src/backend/commands/subscriptioncmds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c
index baff00dd74e..464db6d247f 100644
--- a/src/backend/commands/subscriptioncmds.c
+++ b/src/backend/commands/subscriptioncmds.c
@@ -1505,6 +1505,16 @@ DropSubscription(DropSubscriptionStmt *stmt, bool isTopLevel)
list_free(subworkers);
/*
+ * Remove the no-longer-useful entry in the launcher's table of apply
+ * worker start times.
+ *
+ * If this transaction rolls back, the launcher might restart a failed
+ * apply worker before wal_retrieve_retry_interval milliseconds have
+ * elapsed, but that's pretty harmless.
+ */
+ ApplyLauncherForgetWorkerStartTime(subid);
+
+ /*
* Cleanup of tablesync replication origins.
*
* Any READY-state relations would already have dealt with clean-ups.