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>
pull/18/merge
Peter Eisentraut 8 years ago
parent 54affb41e7
commit a99448ab45
  1. 3
      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);

Loading…
Cancel
Save