Content-Length: 259326 | pFad | http://github.com/postgrespro/postgres/commit/a99448ab4515aaadc17647e53633f418893f5adf

CD Don't wake up logical replication launcher unnecessarily · postgrespro/postgres@a99448a · GitHub
Skip to content

Commit a99448a

Browse files
committed
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>
1 parent 54affb4 commit a99448a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/commands/subscriptioncmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ CreateSubscription(CreateSubscriptionStmt *stmt, bool isTopLevel)
452452

453453
heap_close(rel, RowExclusiveLock);
454454

455-
ApplyLauncherWakeupAtCommit();
455+
if (enabled)
456+
ApplyLauncherWakeupAtCommit();
456457

457458
ObjectAddressSet(myself, SubscriptionRelationId, subid);
458459

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a99448ab4515aaadc17647e53633f418893f5adf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy