summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-10-30 10:59:56 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-10-30 10:59:56 +0100
commit9fcd4874ed50ee6c60dadd0f1146d8fea9ff0055 (patch)
tree1ce7ff72e2b7c0e93763de7122173758ea599fa3 /doc/src
parent3479a0f823d5a6c3ec61dff6b11ea5250389e56a (diff)
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/libpq.sgml2
1 files changed, 1 insertions, 1 deletions
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 <xref linkend="libpq-PQprotocolVersion"/> to
+ completed you can use <xref linkend="libpq-PQfullProtocolVersion"/> to
find out which exact protocol version was negotiated.
</para>