FYI, the v2 patch did not apply to HEAD
[postgres(at)CentOS7-x64 oss_postgres_misc]$ git apply
../patches_misc/v2-0001-Skip-replication-of-non-local-data.patch
--verbose
...
error: patch failed: src/backend/replication/slotfuncs.c:231
error: src/backend/replication/slotfuncs.c: patch does not apply
------
Kind Regards,
Peter Smith.
Fujitsu Australia.