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>
This commit is contained in:
parent
54affb41e7
commit
a99448ab45
@ -452,7 +452,8 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel)
|
|||||||
|
|
||||||
heap_close(rel, RowExclusiveLock);
|
heap_close(rel, RowExclusiveLock);
|
||||||
|
|
||||||
ApplyLauncherWakeupAtCommit();
|
if (enabled)
|
||||||
|
ApplyLauncherWakeupAtCommit();
|
||||||
|
|
||||||
ObjectAddressSet(myself, SubscriptionRelationId, subid);
|
ObjectAddressSet(myself, SubscriptionRelationId, subid);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user