docs: Link to the correct protocol version inspection function

Started by Jelte Fennema-Nio6 months ago3 messagesdocs
Jump to latest
#1Jelte Fennema-Nio
postgres@jeltef.nl

The docs for max_protocol_version suggested PQprotocolVersion instead of
PQfullProtocolVersion to find out the exact protocol version. Since
PQprotocolVersion only returns the major protocol version that is bad
advice.

Attachments:

v1-0001-docs-Link-to-the-correct-protocol-version-inspect.patchapplication/x-patch; name=v1-0001-docs-Link-to-the-correct-protocol-version-inspect.patchDownload+1-2
#2Shinya Kato
shinya11.kato@gmail.com
In reply to: Jelte Fennema-Nio (#1)
Re: docs: Link to the correct protocol version inspection function

Hi,

On Wed, Oct 22, 2025 at 6:42 PM Jelte Fennema-Nio <postgres@jeltef.nl> wrote:

The docs for max_protocol_version suggested PQprotocolVersion instead of
PQfullProtocolVersion to find out the exact protocol version. Since
PQprotocolVersion only returns the major protocol version that is bad
advice.

Nice catch! The patch looks good to me.

--
Best regards,
Shinya Kato
NTT OSS Center

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Shinya Kato (#2)
Re: docs: Link to the correct protocol version inspection function

On 23.10.25 07:58, Shinya Kato wrote:

On Wed, Oct 22, 2025 at 6:42 PM Jelte Fennema-Nio <postgres@jeltef.nl> wrote:

The docs for max_protocol_version suggested PQprotocolVersion instead of
PQfullProtocolVersion to find out the exact protocol version. Since
PQprotocolVersion only returns the major protocol version that is bad
advice.

Nice catch! The patch looks good to me.

committed