aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-05-01 22:50:32 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-05-01 22:50:32 -0400
commita99448ab4515aaadc17647e53633f418893f5adf (patch)
treebe12a16319fa039af3e30185ab6ef41d381e0e28 /src
parent54affb41e79cf4bec00bb5e00eb12a1715b9e278 (diff)
downloadpostgresql-a99448ab4515aaadc17647e53633f418893f5adf.tar.gz
postgresql-a99448ab4515aaadc17647e53633f418893f5adf.zip
Don't wake up logical replication launcher unnecessarily
In CREATE SUBSCRIPTION, only wake up the launcher when the subscription is enabled. Author: Fujii Masao <masao.fujii@gmail.com>
Diffstat (limited to 'src')
-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 c597a244f88..ee0983fd87e 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);