Correct documentation for protocol version

From: Dave Cramer <davecramer(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Correct documentation for protocol version
Date: 2025-04-10 09:52:14
Message-ID: CADK3HH+KkTFkv3zhJ9Koqmkyj=n2XG=CDp-MxAhMOPoezaQwoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greetings,

The current docs say that if a client asks for a protocol that the backend
doesn't support, it will return the newest minor version.
https://www.postgresql.org/docs/current/protocol-message-formats.html#PROTOCOL-MESSAGE-FORMATS-NEGOTIATEPROTOCOLVERSION

However that isn't what it returns. It actually returns the entire newest
protocol that it supports. Attached is a patch to fix the docs.

Dave Cramer

Attachment Content-Type Size
protocol.patch application/octet-stream 653 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Maksim.Melnikov 2025-04-10 09:55:54 Re: sync_standbys_defined read/write race on startup
Previous Message Amit Langote 2025-04-10 09:46:14 Re: wrong comments in rewriteTargetListIU