I encountered a problem with logical replication. The object identifier types, regclass, regproc, regtype, etc. are transferred as an oid in the binary mode. However, the subscriber expects them as text which makes sense because it cannot do anything with the oids. I am getting "invalid byte sequence for encoding "UTF8": 0x00" when I try this.
I think the publisher should not transfer these in binary just like the data types from extensions. Any opinions?