Skip to content

Commit 9fcd487

Browse files
committed
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 <[email protected]> Reviewed-by: Shinya Kato <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/CAGECzQSKFxQsYAgr11PhdOr-RtPZEdAXZnHx6U3avLuk3xQaTQ%40mail.gmail.com
1 parent 3479a0f commit 9fcd487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,7 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname
22202220
server does not support the protocol version requested by the client,
22212221
the connection is automatically downgraded to a lower minor protocol
22222222
version that the server supports. After the connection attempt has
2223-
completed you can use <xref linkend="libpq-PQprotocolVersion"/> to
2223+
completed you can use <xref linkend="libpq-PQfullProtocolVersion"/> to
22242224
find out which exact protocol version was negotiated.
22252225
</para>
22262226

0 commit comments

Comments
 (0)