BUG #14773: Incorrect documentation for the Relation logical replication message format

From: kyle(at)kyleconroy(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: kyle(at)kyleconroy(dot)com
Subject: BUG #14773: Incorrect documentation for the Relation logical replication message format
Date: 2017-08-08 06:09:05
Message-ID: 20170808060905.8429.14662@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jaimin Pan 2017-08-08 06:53:43 Re: Error of insert Foreign table with postgres_fdw
Previous Message Scott Milliken 2017-08-08 01:31:41 Re: BUG #14769: Logical replication error "cache lookup failed for type 0"