Re: Postgres Protocol Message Formats Clarification

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: akindipejohn2017(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Postgres Protocol Message Formats Clarification
Date: 2026-07-11 21:10:24
Message-ID: CAKFQuwbjRc8sQwECM_1-q_oB5Nk0D0xh8ZD3j+uGMR04-xhnCg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Sat, Jul 11, 2026 at 10:58 AM PG Doc comments form <
noreply(at)postgresql(dot)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.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Yaroslav Saburov 2026-07-12 04:46:11 Re: 18.4. Managing Kernel Resources
Previous Message Tom Lane 2026-07-11 19:19:33 Re: 18.4. Managing Kernel Resources