pgsql: doc: Clarify that logical decoding message LSN is the end LSN.

From: Masahiko Sawada <msawada(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
Date: 2026-11-25 18:54:59
Message-ID: E1xWI8x-00000000Irf-0w0J@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

doc: Clarify that logical decoding message LSN is the end LSN.

The documentation described the LSN of a logical decoding message just
as the WAL location of the message. That could be read as the start
LSN of its WAL record, since other callbacks such as the change
callback get the start LSN. But we pass the end LSN of the record to
the message callback, and pgoutput sends it as is in the logical
replication Message message.

Update the documentation of both the message callback and the protocol
message to say so explicitly, so that authors of output plugins and
logical replication clients don't confuse it with the start LSN.

On master, commit 4255812efdbc changed transactional messages to use
the start LSN and updated the documentation along with it, so this
change is applied to the back branches only.

Author: Atsushi Torikoshi <torikoshia(at)oss(dot)nttdata(dot)com>
Discussion: https://postgr.es/m/d99c688994ab3a998afe26e61fe4f69f@oss.nttdata.com
Backpatch-through: 15

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b0000574e448e7d558d8c4dfe042d6e27d6886f0

Modified Files
--------------
doc/src/sgml/logicaldecoding.sgml | 8 ++++----
doc/src/sgml/protocol.sgml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2026-11-25 18:55:02 pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
Previous Message Masahiko Sawada 2026-11-25 18:54:55 pgsql: doc: Clarify that logical decoding message LSN is the end LSN.