>> https://www.postgresql.org/message-id/attachment/55041/0001-Handle-heap-rewrites-better-in-logical-replication.patch
This fix solves the problem. It would be nice if this or another, better patch in pg10 was implemented.
yxq