jackc / pglogrepl

PostgreSQL logical replication library for Go.
MIT License
319 stars 59 forks source link

Use signed integer type for Relation message type modifier #28

Closed kendru closed 2 years ago

kendru commented 2 years ago

In the logical replication streaming protocol, the type modifier for the Relation ('R') message is a signed 32-bit integer because -1 is commonly used as a sentinel value for non-parameterized types, and this value should be reflected in the decoded message.

Fixes #27

jackc commented 2 years ago

LGTM