The first patch was incorrectly created on top of failover slots not HEAD. Attached patch applies on HEAD.
Lots of logical decoding work ongoing but this one shows as active in the September cf and the comments by Craig indicate potential relevance to 9.6. Is this still live as-is or has it been subsumed by other threads?