pgsql: Stop table sync workers when subscription relation entry is remo

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Stop table sync workers when subscription relation entry is remo
Date: 2017-06-12 12:55:41
Message-ID: E1dKOsf-0004B2-8y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Stop table sync workers when subscription relation entry is removed

When a table sync worker is in waiting state and the subscription table
entry is removed because of a concurrent subscription refresh, the
worker could be left orphaned. To avoid that, explicitly stop the
worker when the pg_subscription_rel entry is removed.

Reported-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ddd7b22b225ae41d16ceb218b387645cb9becfdc

Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-06-12 13:46:04 Re: pgsql: Apply RLS policies to partitioned tables.
Previous Message Amit Langote 2017-06-12 06:48:09 Re: pgsql: Apply RLS policies to partitioned tables.