From: Peter Eisentraut Date: Thu, 30 Oct 2025 09:59:56 +0000 (+0100) Subject: docs: Link to the correct protocol version inspection function X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fcd4874ed50ee6c60dadd0f1146d8fea9ff0055;p=thirdparty%2Fpostgresql.git 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 Reviewed-by: Shinya Kato Discussion: https://www.postgresql.org/message-id/flat/CAGECzQSKFxQsYAgr11PhdOr-RtPZEdAXZnHx6U3avLuk3xQaTQ%40mail.gmail.com --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 5bf59a19855..e76da383714 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -2220,7 +2220,7 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname server does not support the protocol version requested by the client, the connection is automatically downgraded to a lower minor protocol version that the server supports. After the connection attempt has - completed you can use to + completed you can use to find out which exact protocol version was negotiated.