From: Tatsuo Ishii Date: Fri, 11 Jul 2025 01:34:57 +0000 (+0900) Subject: Doc: fix outdated protocol version. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cff01c4a3472ecd2a53f957f13ab20a2970db4c;p=thirdparty%2Fpostgresql.git Doc: fix outdated protocol version. In the description of StartupMessage, the protocol version was left 3.0. Instead of just updating it, this commit removes the hard coded protocol version and shows the numbers as an example. This makes that the part of the doc does not need to be updated when the version is changed in the future. Author: Jelte Fennema-Nio Reviewed-by: Tatsuo Ishii Reviewed-by: Aleksander Alekseev Discussion: https://postgr.es/m/20250626.155608.568829483879866256.ishii%40postgresql.org --- diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 82fe3f93761..4cfd9767f7c 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -6081,13 +6081,14 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;" - Int32(196608) + Int32 The protocol version number. The most significant 16 bits are - the major version number (3 for the protocol described here). - The least significant 16 bits are the minor version number - (0 for the protocol described here). + the major version number. The least significant 16 bits are the minor + version number. As an example protocol version 3.2 is represented as + 196610 in decimal or more clearly as + 0x00030002 in hexadecimal.