Re: wake up logical workers after ALTER SUBSCRIPTION - Mailing list pgsql-hackers

From Melih Mutlu
Subject Re: wake up logical workers after ALTER SUBSCRIPTION
Date
Msg-id CAGPVpCTkdaOyBLXB435VXq0RA1cHLFQut7BPm6t8D4dsdiEXZQ@mail.gmail.com
Whole thread Raw
In response to Re: wake up logical workers after ALTER SUBSCRIPTION  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: wake up logical workers after ALTER SUBSCRIPTION
List pgsql-hackers
Hi,
 
Actually, that's not quite right.  The sync worker will wake up the apply
worker to change the state from SYNCDONE to READY.  AllTablesyncsReady()
checks that all tables are READY, so we need to wake up all the workers
when an apply worker changes the state to READY.  Each worker will then
evaluate whether to restart for two_phase mode.

Right. I didn't think about the two phase case thoroughly. Waking up all apply workers can help.

Do we also need to wake up all sync workers too? Even if not, I'm not actually sure whether doing that would harm anything though.
Just asking since currently the patch wakes up all workers including sync workers if any still exists.

Best,
--
Melih Mutlu
Microsoft

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: ExecRTCheckPerms() and many prunable partitions
Next
From: Nikita Malakhov
Date:
Subject: Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features)