summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2017-05-02 02:50:32 +0000
committerPeter Eisentraut2017-05-02 02:50:32 +0000
commita99448ab4515aaadc17647e53633f418893f5adf (patch)
treebe12a16319fa039af3e30185ab6ef41d381e0e28
parent54affb41e79cf4bec00bb5e00eb12a1715b9e278 (diff)
Don't wake up logical replication launcher unnecessarily
In CREATE SUBSCRIPTION, only wake up the launcher when the subscription is enabled. Author: Fujii Masao <[email protected]>
-rw-r--r--src/backend/commands/subscriptioncmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c
index c597a244f8..ee0983fd87 100644
--- a/src/backend/commands/subscriptioncmds.c
+++ b/src/backend/commands/subscriptioncmds.c
@@ -452,7 +452,8 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel)
heap_close(rel, RowExclusiveLock);
- ApplyLauncherWakeupAtCommit();
+ if (enabled)
+ ApplyLauncherWakeupAtCommit();
ObjectAddressSet(myself, SubscriptionRelationId, subid);