Doc: fix outdated protocol version.
authorTatsuo Ishii <[email protected]>
Fri, 11 Jul 2025 01:34:57 +0000 (10:34 +0900)
committerTatsuo Ishii <[email protected]>
Fri, 11 Jul 2025 01:34:57 +0000 (10:34 +0900)
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 <[email protected]>
Reviewed-by: Tatsuo Ishii <[email protected]>
Reviewed-by: Aleksander Alekseev <[email protected]>
Discussion: https://postgr.es/m/20250626.155608.568829483879866256.ishii%40postgresql.org

doc/src/sgml/protocol.sgml

index 82fe3f93761dc017347072f5de2ed4d9d21faebb..4cfd9767f7cbc93e2e63c9a623d18d92ab279400 100644 (file)
@@ -6081,13 +6081,14 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
       </varlistentry>
 
       <varlistentry>
-       <term>Int32(196608)</term>
+       <term>Int32</term>
        <listitem>
         <para>
          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
+         <literal>196610</literal> in decimal or more clearly as
+         <literal>0x00030002</literal> in hexadecimal.
         </para>
        </listitem>
       </varlistentry>