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. 1
      src/backend/commands/subscriptioncmds.c

@ -452,6 +452,7 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel)
heap_close(rel, RowExclusiveLock);
if (enabled)
ApplyLauncherWakeupAtCommit();
ObjectAddressSet(myself, SubscriptionRelationId, subid);

Loading…
Cancel
Save