From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Wake up launcher when enabling a subscription |
Date: | 2017-04-25 18:44:34 |
Message-ID: | E1d35Ry-0001Ha-VT@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Wake up launcher when enabling a subscription
Otherwise one would have to wait up to DEFAULT_NAPTIME_PER_CYCLE until
the subscription worker is considered for starting.
There is a small race condition: If one enables a subscription right
after disabling it, the launcher might not have registered the stopping
when receiving the wakeup signal for the re-enabling. The start will
then not happen right away but after the full cycle time.
Author: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a3f17b9c315512e9c116dbc243056aad8b372e18
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 3 +++
1 file changed, 3 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2017-04-25 19:30:55 | pgsql: doc PG10: update EXPLAIN SUMMARY item |
Previous Message | Bruce Momjian | 2017-04-25 17:48:01 | pgsql: doc: update PG 10 item about referencing many relations |