pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
5+ messages / 1 participants
[nested] [flat]

* pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
@ 2026-11-25 18:54  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Masahiko Sawada @ 2026-11-25 18:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/576189dc25c93e68d1f7c892bcf2c50e4729dbc6

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
@ 2026-11-25 18:54  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Masahiko Sawada @ 2026-11-25 18:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
@ 2026-11-25 18:54  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Masahiko Sawada @ 2026-11-25 18:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_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(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
@ 2026-11-25 18:55  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Masahiko Sawada @ 2026-11-25 18:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/81c3e44603fdcd527fd668b8ffa7550fa31241e0

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: doc: Clarify that logical decoding message LSN is the end LSN.
@ 2026-11-25 18:55  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Masahiko Sawada @ 2026-11-25 18:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_15_STABLE

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

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2026-11-25 18:55 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 18:54 pgsql: doc: Clarify that logical decoding message LSN is the end LSN. Masahiko Sawada <msawada@postgresql.org>
2026-11-25 18:54 pgsql: doc: Clarify that logical decoding message LSN is the end LSN. Masahiko Sawada <msawada@postgresql.org>
2026-11-25 18:54 pgsql: doc: Clarify that logical decoding message LSN is the end LSN. Masahiko Sawada <msawada@postgresql.org>
2026-11-25 18:55 pgsql: doc: Clarify that logical decoding message LSN is the end LSN. Masahiko Sawada <msawada@postgresql.org>
2026-11-25 18:55 pgsql: doc: Clarify that logical decoding message LSN is the end LSN. Masahiko Sawada <msawada@postgresql.org>

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