Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50fa688

Browse files
committed
Fix some comments related to logical repslot advancing
confirmed_flush is part of a replication slot's information, but notconfirmed_lsn.Author: Kyotaro HoriguchiDiscussion:https://postgr.es/m/20191226.175919.17237335658671970.horikyota.ntt@gmail.comBackpatch-through: 11
1 parent8052aaf commit50fa688

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/replication/slotfuncs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ pg_physical_replication_slot_advance(XLogRecPtr moveto)
379379
/*
380380
* Helper function for advancing our logical replication slot forward.
381381
*
382-
* The slot's restart_lsn is used as start point for reading records,
383-
*while confirmed_lsn is used as base point for the decoding context.
382+
* The slot's restart_lsn is used as start point for reading records, while
383+
*confirmed_flush is used as base point for the decoding context.
384384
*
385385
* We cannot just do LogicalConfirmReceivedLocation to update confirmed_flush,
386386
* because we need to digest WAL to advance restart_lsn allowing to recycle
@@ -550,8 +550,8 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS)
550550
/*
551551
* Check if the slot is not moving backwards. Physical slots rely simply
552552
* on restart_lsn as a minimum point, while logical slots have confirmed
553-
* consumption up toconfirmed_lsn, meaning that in both cases data older
554-
* than that is not available anymore.
553+
* consumption up toconfirmed_flush, meaning that in both cases data
554+
*olderthan that is not available anymore.
555555
*/
556556
if (OidIsValid(MyReplicationSlot->data.database))
557557
minlsn=MyReplicationSlot->data.confirmed_flush;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp