docs: Link to the correct protocol version inspection function

Peter Eisentraut <peter@eisentraut.org>

Commit: 9fcd4874ed50ee6c60dadd0f1146d8fea9ff0055
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-10-30T09:59:56Z
docs: Link to the correct protocol version inspection function

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.

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Reviewed-by: Shinya Kato <shinya11.kato@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAGECzQSKFxQsYAgr11PhdOr-RtPZEdAXZnHx6U3avLuk3xQaTQ%40mail.gmail.com

Files

PathChange+/−
doc/src/sgml/libpq.sgml modified +1 −1

Discussion