10000 Doc: fix outdated protocol version. · postgres/postgres@4cff01c · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cff01c

Browse files
committed
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 <postgres@jeltef.nl> Reviewed-by: Tatsuo Ishii <ishii@postgresql.org> Reviewed-by: Aleksander Alekseev <aleksander@timescale.com> Discussion: https://postgr.es/m/20250626.155608.568829483879866256.ishii%40postgresql.org
1 parent 110e6dc commit 4cff01c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/src/sgml/protocol.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6081,13 +6081,14 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
60816081
</varlistentry>
60826082

60836083
<varlistentry>
6084-
<term>Int32(196608)</term>
6084+
<term>Int32</term>
60856085
<listitem>
60866086
<para>
60876087
The protocol version number. The most significant 16 bits are
6088-
the major version number (3 for the protocol described here).
6089-
The least significant 16 bits are the minor version number
6090-
(0 for the protocol described here).
6088+
the major version number. The least significant 16 bits are the minor
6089+
version number. As an example protocol version 3.2 is represented as
6090+
<literal>196610</literal> in decimal or more clearly as
6091+
<literal>0x00030002</literal> in hexadecimal.
60916092
</para>
60926093
</listitem>
60936094
</varlistentry>

0 commit comments

Comments
 (0)
0