pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
Date: Wed, 25 Nov 2026 18:54:55 +0000
Message-ID: <E1xWI8t-00000000Ir3-2U9v@gemulon.postgresql.org> (raw)

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@oss.nttdata.com>
Discussion: https://postgr.es/m/d99c688994ab3a998afe26e61fe4f69f@oss.nttdata.com
Backpatch-through: 15

Branch
------
REL_18_STABLE

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

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



view thread (5+ messages)  latest in thread

Message-ID: <E1xWI8t-00000000Ir3-2U9v@gemulon.postgresql.org>
Permalink:  ../E1xWI8t-00000000Ir3-2U9v@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xWI8t-00000000Ir3-2U9v@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: msawada@postgresql.org
  Subject: Re: pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
  In-Reply-To: <E1xWI8t-00000000Ir3-2U9v@gemulon.postgresql.org>
  References: <E1xWI8t-00000000Ir3-2U9v@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox