From 4cff01c4a3472ecd2a53f957f13ab20a2970db4c Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Fri, 11 Jul 2025 10:34:57 +0900 Subject: [PATCH] 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 --- doc/src/sgml/protocol.sgml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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. -- 2.39.5