So I tried this, but -- perhaps not suprisingly -- I can't get it to
work properly; the synchronization fails. I suspect I need some
barriers, but I tried adding a few (probably some that are not really
necessary) and that didn't have the expected effect. Strangely, all
tests work for me, but the pg_upgrade one in particular fails.
(The attached is of course POC quality at best.)
I'll have another look next week.
--
Álvaro Herrera 39°49'30"S 73°17'W