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

Commit1b2356a

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 parent9e551a1 commit1b2356a

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
@@ -343,8 +343,8 @@ pg_physical_replication_slot_advance(XLogRecPtr moveto)
343343
/*
344344
* Helper function for advancing our logical replication slot forward.
345345
*
346-
* The slot's restart_lsn is used as start point for reading records,
347-
*while confirmed_lsn is used as base point for the decoding context.
346+
* The slot's restart_lsn is used as start point for reading records, while
347+
*confirmed_flush is used as base point for the decoding context.
348348
*
349349
* We cannot just do LogicalConfirmReceivedLocation to update confirmed_flush,
350350
* because we need to digest WAL to advance restart_lsn allowing to recycle
@@ -514,8 +514,8 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS)
514514
/*
515515
* Check if the slot is not moving backwards. Physical slots rely simply
516516
* on restart_lsn as a minimum point, while logical slots have confirmed
517-
* consumption up toconfirmed_lsn, meaning that in both cases data older
518-
* than that is not available anymore.
517+
* consumption up toconfirmed_flush, meaning that in both cases data
518+
*olderthan that is not available anymore.
519519
*/
520520
if (OidIsValid(MyReplicationSlot->data.database))
521521
minlsn=MyReplicationSlot->data.confirmed_flush;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp