postgresql_16:8.4.5.2 Logical Replication Protocol Messages
PostgreSQL 16 > Internals > Frontend/Backend Protocol > Logical Streaming Replication Protocol > Logical Replication Protocol Messages
The individual protocol messages are discussed in the following subsections. Individual messages are described in (see postgresql_16:8.4.9).
All top-level protocol messages begin with a message type byte. While represented in code as a character, this is a signed byte with no associated encoding.
Since the streaming replication protocol supplies a message length there is no need for top-level protocol messages to embed a length in their header.