Commit a99448ab authored by Peter Eisentraut's avatar Peter Eisentraut

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>
parent 54affb41
...@@ -452,6 +452,7 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel) ...@@ -452,6 +452,7 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel)
heap_close(rel, RowExclusiveLock); heap_close(rel, RowExclusiveLock);
if (enabled)
ApplyLauncherWakeupAtCommit(); ApplyLauncherWakeupAtCommit();
ObjectAddressSet(myself, SubscriptionRelationId, subid); ObjectAddressSet(myself, SubscriptionRelationId, subid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment