Re: Postgres Protocol Message Formats Clarification - Mailing list pgsql-docs

From David G. Johnston
Subject Re: Postgres Protocol Message Formats Clarification
Date
Msg-id CAKFQuwbjRc8sQwECM_1-q_oB5Nk0D0xh8ZD3j+uGMR04-xhnCg@mail.gmail.com
Whole thread
In response to Postgres Protocol Message Formats Clarification  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
On Sat, Jul 11, 2026 at 10:58 AM PG Doc comments form <noreply@postgresql.org> wrote:
While the docs correctly state here
(https://www.postgresql.org/docs/current/protocol-overview.html#PROTOCOL-MESSAGE-CONCEPTS)
that the size bytes represent the length of the message

It states it's the length of the "message contents".  That the leading byte is a header and not content seems reasonably implied - otherwise the field would just be 'the length of the message' and there would be no need to even clarify that the length field itself is included in the count.

David J.

pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: 18.4. Managing Kernel Resources
Next
From: Yaroslav Saburov
Date:
Subject: Re: 18.4. Managing Kernel Resources