Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitddd7b22

Browse files
committed
Stop table sync workers when subscription relation entry is removed
When a table sync worker is in waiting state and the subscription tableentry is removed because of a concurrent subscription refresh, theworker could be left orphaned. To avoid that, explicitly stop theworker when the pg_subscription_rel entry is removed.Reported-by: Masahiko Sawada <sawada.mshk@gmail.com>
1 parenteab8689 commitddd7b22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/commands/subscriptioncmds.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
600600

601601
RemoveSubscriptionRel(sub->oid,relid);
602602

603+
logicalrep_worker_stop(sub->oid,relid);
604+
603605
namespace=get_namespace_name(get_rel_namespace(relid));
604606
ereport(NOTICE,
605607
(errmsg("removed subscription for table %s.%s",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp