From 8064283631abe3ebc294c582191dafeaf8f5b285 Mon Sep 17 00:00:00 2001
From: Fujii Masao <fujii@postgresql.org>
Date: Fri, 11 Sep 2026 10:54:22 +0900
Subject: [PATCH v1] doc: Fix primary status update WAL position description

Commit 5f3a49abf7f changed the primary status update message to report the
end of the last inserted WAL record instead of the WAL write position.
However, the protocol documentation still described the WAL position field as
the latest WAL write position, which no longer matches the message sent by
walsender.

Update the description of the WAL position field to indicate the end of the
last inserted WAL record, matching the implementation.

Backpatch-through: 19
---
 doc/src/sgml/protocol.sgml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml
index 89ac680efd5..8ced69f283b 100644
--- a/doc/src/sgml/protocol.sgml
+++ b/doc/src/sgml/protocol.sgml
@@ -2787,7 +2787,7 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
            <term>Int64</term>
            <listitem>
             <para>
-             The latest WAL write position on the server.
+             The end of the last inserted WAL record on the server.
             </para>
            </listitem>
           </varlistentry>
-- 
2.55.0

