The following bug has been logged on the website:
Bug reference: 14773
Logged by: Kyle Conroy
Email address: kyle(at)kyleconroy(dot)com
PostgreSQL version: 10beta2
Operating system: macOS
Description:
I'm working on a Golang parser[0] for logical replication. I was trying to
parse a Relation message, but noticed additional bytes at the end of the
message.
It appears the documentation[1] is missing two fields: attribute type and
attribute mode[2].
Thanks!
[0] https://github.com/kyleconroy/pgoutput
[1]
https://www.postgresql.org/docs/devel/static/protocol-logicalrep-message-formats.html
[2]
https://github.com/postgres/postgres/blob/113b0045e20d40f726a0a30e33214455e4f1385e/src/backend/replication/logical/proto.c#L553